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)
I am getting BadArgument @ setelementposition error on debug script.
whats wrong with my script?
I am really new on lua.
function jumper ()
local playerpos = getLocalPlayer()
local x, y, z = getElementPosition ( playerpos )
setElementPosition ( source, x, y, 100 )
end
addCommandHandler ( "jump", jumper )