Jump to content

interactive ped


Matevsz

Recommended Posts

4 hours ago, Matevsz said:

jak to zrobić, że po wpisaniu komendy / przywołać ped chodził za nami?

I have done the summon command:

function Ped(thePlayer)
x, y, z = getElementPosition(thePlayer)
createPed(299, x+0.5, y, z)
end
addCommandHandler("summon", Ped)

addEventHandler("onClientVehicleEnter", root, 
function(player,seat,door)
x, y, z = getElementPosition(player)
ped = createPed(299, x+0.5, y, z)
if (seat==0) and (door==0) then
setPedControlState(ped, "enter_exit", true)
end
end
)

just how to do that as we get into the car it also gets ped?

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...