WiBox Posted May 10, 2020 Share Posted May 10, 2020 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 comment
Scripting Moderators thisdp Posted May 10, 2020 Scripting Moderators Share Posted May 10, 2020 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 comment
WiBox Posted May 11, 2020 Author Share Posted May 11, 2020 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 comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now