DamonSalvatore 0 Posted March 27 Share Posted March 27 if(mp.players.local.vehicle) { _player.forEach(___player => { if(!___player.vehicle) return; mp.players.local.vehicle.setNoCollision(___player.vehicle.handle, false); mp.players.local.vehicle.setAlpha(150); }); } I use this function in client-side on render function. The problem is when 2 players are online on the server, the collisions will work. But when there are three players, the other one can get inside us, which means he doesn't have the collisions activated, but we do, and if he gets out of the car, will be able to get into the one that had the collisions activated. Link to post Share on other sites
DamonSalvatore 0 Posted Tuesday at 05:08 PM Author Share Posted Tuesday at 05:08 PM up Link to post Share on other sites
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