Jump to content

error with move vehicle


ABoHussin

Recommended Posts

hi everyone ,,

i have error with me simple script ..!

its about move vehicle ..

any one can help me ?

code :

function newPed()
  local x, y, z = getElementPosition(localPlayer)
  local myPed = createPed(0, x + 1, y, z)
  local car = createVehicle ( 579, x+1, y, z )
  warpPedIntoVehicle ( myPed, car)
  if myPed then 
    setPedControlState(myPed,"forwards", true)
  end 
end
addCommandHandler("ped",newPed)

error in  debugscript 3 :

p_283qsph1.png

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...