Oussema Posted March 29, 2017 Share Posted March 29, 2017 bad argument #1 to floor number expected got boolean local vehicle = getPedOccupiedVehicle(client) local fuel = math.floor(getElementData ( vehicle, "fuel" )) Link to comment
Pembo Posted March 29, 2017 Share Posted March 29, 2017 (edited) 16 minutes ago, Oussema said: bad argument #1 to floor number expected got boolean local vehicle = getPedOccupiedVehicle(client) local fuel = math.floor(getElementData ( vehicle, "fuel" )) Variable 'vehicle' will be assigned a boolean value if the client is not in a vehicle. Edited March 29, 2017 by bradmanzzz 1 Link to comment
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