How to make a script to enable passive mode

I’d like to make a race script,but I need everyone has no collision.
I have used SetEntityNoCollisionEntity,but when I across the other player’s vehicle,my game cam has change for a few second which influence me (I CAN SEE THE ROAD CLEARLY !!) to go to the next checkpoint.
So I want to make a script like GTAV:OL 's passive mode.
I search the native ,but I just found NETWORKSPENTBUYPASSIVEMODE this native and I don’t know how to use it

Does anyone know this?

nobody know this?

Maybe this will work?

NetworkSpentBuyPassiveMode(GetPlayerPed(-1),true, true)

Maybe this will work but idk im also trying to figure it out

1 Like

did u figure it out ?