Best-Killer Posted February 4, 2016 Posted February 4, 2016 addEvent("givePVehicle", true) addEventHandler( "givePVehicle", root, function() local vehicle = createVehicle (482,1605.42, -1472.97, 13.58,0,0,0) setElementData (vehicle, "OwnerOfThisVehicle", source) warpPedIntoVehicle(source, vehicle) end ) function removePVehicle ( vehicle, seat, jacked ) if getElementData (vehicle, "OwnerOfThisVehicle") == source then destroyElement (vehicle) end end addEvent ("removePVehicle",true) addEventHandler ( "removePVehicle", root, removePVehicle ) line 11 argument 1 got nill
Syntrax# Posted February 4, 2016 Posted February 4, 2016 addEvent("givePVehicle", true) addEventHandler( "givePVehicle", root, function() local vehicle = createVehicle (482,1605.42, -1472.97, 13.58,0,0,0) setElementData (vehicle, "OwnerOfThisVehicle", source) warpPedIntoVehicle(source, vehicle) end ) function removePVehicle ( vehicle, seat, jacked ) if getElementData (vehicle, "OwnerOfThisVehicle") == source then destroyElement (vehicle) end end addEvent ("removePVehicle",true) addEventHandler ( "removePVehicle", root, removePVehicle ) line 11 argument 1 got nill Vehicle doesn't have an data over there,you gotta give it a data addEvent("givePVehicle", true) addEventHandler( "givePVehicle", root, function() local vehicle = createVehicle (482,1605.42, -1472.97, 13.58,0,0,0) setElementData (vehicle, "OwnerOfThisVehicle", source) warpPedIntoVehicle(source, vehicle) end ) function removePVehicle ( player, seat, jacked ) local vehicle = getPedOccupiedVehicle ( player ) if getElementData (vehicle, "OwnerOfThisVehicle") == source then destroyElement (vehicle) end end addEvent ("removePVehicle",true) addEventHandler ( "removePVehicle", root, removePVehicle )
starksZ Posted February 4, 2016 Posted February 4, 2016 Why spam the forum with your errors? You create a post per day, why dont learn lua?
Best-Killer Posted February 5, 2016 Author Posted February 5, 2016 Why spam the forum with your errors?You create a post per day, why dont learn lua? how i can learn without forum help ?? GTFO man Fucking Haters it's not your problem if i create a post or no Leave me pls
Best-Killer Posted February 5, 2016 Author Posted February 5, 2016 addEvent("givePVehicle", true) addEventHandler( "givePVehicle", root, function() local vehicle = createVehicle (482,1605.42, -1472.97, 13.58,0,0,0) setElementData (vehicle, "OwnerOfThisVehicle", source) warpPedIntoVehicle(source, vehicle) end ) function removePVehicle ( vehicle, seat, jacked ) if getElementData (vehicle, "OwnerOfThisVehicle") == source then destroyElement (vehicle) end end addEvent ("removePVehicle",true) addEventHandler ( "removePVehicle", root, removePVehicle ) line 11 argument 1 got nill Vehicle doesn't have an data over there,you gotta give it a data addEvent("givePVehicle", true) addEventHandler( "givePVehicle", root, function() local vehicle = createVehicle (482,1605.42, -1472.97, 13.58,0,0,0) setElementData (vehicle, "OwnerOfThisVehicle", source) warpPedIntoVehicle(source, vehicle) end ) function removePVehicle ( player, seat, jacked ) local vehicle = getPedOccupiedVehicle ( player ) if getElementData (vehicle, "OwnerOfThisVehicle") == source then destroyElement (vehicle) end end addEvent ("removePVehicle",true) addEventHandler ( "removePVehicle", root, removePVehicle ) Work Thanks u
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