How do I get the players to no collide?
AlexJz
2
You should use the SetPedConfigFlag native.
For no collisions (noclip) you would use it like this
SetPedConfigFlag(GetPlayerPed(-1), 62, true)
or
SetPedConfigFlag(GetPlayerPed(-1), 52, true)
1 Like
I tested both and it did not work, I want to take no collision between the players, they can get into one inside the other
AlexJz
5
Youre triggering it too soon, add an event handler for the playerSpawned event and put it in there
I do not know how to do the trigger could help me?
AlexJz
7
Please look at some tutorials or guides in order to learn how to do this stuff, save yourself from asking such simple questions
AddEventHandler('playerSpawned' function()
-- Do stuff here
end)
1 Like
Do I create a separate script? , i put inside an already made and did not work it
AlexJz
10
The support I have given is adequate for you to figure out the rest on your own, no there is no explicit need to put it in another script. If it doesn’t work make sure you test it extensively. That was the only native I found that seemed to have anything about collisions.
Maybe it needs to be in a loop? I really have no idea bud I haven’t tested those natives.
1 Like