KariiiM Posted September 8, 2015 Share Posted September 8, 2015 (edited) Hey guys, today i was scripting something for fun everything is fine exept this part of the code: the Warning is: Bad argument @ 'attachElements' [Expected element at argument 2,got boolean] the argument 2 it's myVeh local myVeh = getPedOccupiedVehicle (source) attachElements ( Box, myVeh , 0.25, -2.3, -0.5, -0.5, 0, 0 ) ~Thanks in advance. Edited September 8, 2015 by Guest Link to comment
KariiiM Posted September 8, 2015 Author Share Posted September 8, 2015 Never mind i solved it , i just forgot to check if the player is occupied to the vehicle like that for the people who get like this problem in future if getPedOccupiedVehicle (source) then local myVeh = getPedOccupiedVehicle (source) attachElements ( Box, myVeh , 0.25, -2.3, -0.5, -0.5, 0, 0 ) end 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