I have a problem. I wanted to make a script that will give out the machine to the player and at the same time put it in it. But I could not see the debug script I was able to get it out. **** Bad argument @ @ warpPedIntoVehicle @ [Expected ped at argument 1, got string "give" ****
How can I fix this? Here is the code of my script ****
function givecar (Player)
local x, y, z = getElementPosition (Player)
local car = createVehicle (411, x, y, z)
warpPedIntoVehicle (Player, car)
end
addCommandHandler ("give", givecar)