DamonSalvatore Posted March 27, 2021 Share Posted March 27, 2021 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 comment Share on other sites More sharing options...
DamonSalvatore Posted March 29, 2021 Author Share Posted March 29, 2021 up Link to comment Share on other sites More sharing options...
DamonSalvatore Posted March 31, 2021 Author Share Posted March 31, 2021 up Link to comment Share on other sites More sharing options...
DamonSalvatore Posted April 6, 2021 Author Share Posted April 6, 2021 up Link to comment Share on other sites More sharing options...
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