vvv.mikhalin Posted August 16, 2020 Posted August 16, 2020 Tell me please why the code let vehicle = mp.players.local.vehicle let speed = (value / 3.6) vehicle.setMaxSpeed(speed) when setting the value does not work? The speed limit doesn't work at all. Server on version 1.1
Spliddorama Posted August 5, 2023 Posted August 5, 2023 For anyone encountering this and needing a solution: let vehicle = mp.players.local.vehicle; let speed = parseFloat(limit/3.6); vehicle.setMaxSpeed(speed); speed must be parsed to float Tip: Decimating by 3.6 refers to "km/h" 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now