emreb Posted July 21, 2014 Share Posted July 21, 2014 As the title says, I have got problems with my script. Can someone tell me whats wrong? function VehicleFixer (thePlayer) -- local veh = getPedOccupiedVehicle(thePlayer) local vehiclepos = getPedOccupiedVehicle() local x, y, z = getElementPosition ( vehiclepos ) bool respawnVehicle ( vehicle vehiclepos ) end addCommandHandler("fix", VehicleFixer) Link to comment
Et-win Posted July 21, 2014 Share Posted July 21, 2014 -- local veh = getPedOccupiedVehicle(thePlayer) local vehiclepos = getPedOccupiedVehicle() The second code, look what is different and that is wrong. Also: bool respawnVehicle ( vehicle, vehiclepos ) Missed ',' and vehicle is not defined (in this script) + You can't give positions to respawnVehicle. Click on the code to see the wiki and read the first 3 sentences there. 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