Jump to content

Ped Control State


Recommended Posts

I'm trying to make something like a NPC system, while using setPedControlState and setPedAnalogControlState (Ped was inside  a vehicle) I've seen that, while the ped is inside my distance of render (setFarClipDistance) the control state works, but when the ped is outside it, he won't move.. So I used outputChatBox with getElementPosition ped when I'm far it gave the same coordination in another words the ped didn't move, isn't there a way to disable that? To make a ped drive a car even if he's not inside my distance of render?

Link to post

You can solve this with setElementStreamable.

But you should know that out of GTASA's streaming range, the collision of world object will be unloaded. This means the ped will go under ground.

Link to post

Well, if I spawn peds in a certain range from the player in a way that would be inside his distance of render things will be solved, better than using setElementStreamable. Thank you

Link to post

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