stevensalvaro Posted March 18, 2016 Share Posted March 18, 2016 Hello, I got some little bug , when the vehicle get item id 137 it's fine , but when i take item id 137 , then why set element data not set to idModel[0] , i just use 'else' , may i use function ' elseif not' ? local theVehicle = getPedOccupiedVehicle ( localPlayer ) if (exports.global:hasItem(theVehicle, 137)) then setElementData( localPlayer, "neon", idModel[1] ) elseif (exports.global:hasItem(theVehicle, 138)) then setElementData( localPlayer, "neon", idModel[2] ) else setElementData( localPlayer, "neon", idModel[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