Jump to content
Sign in to follow this  
Mr_B_A_Baracus

Blocking Access To Car Inventory

Recommended Posts

I think I know the answer to this one but I'm going to ask anyway!

Is there any way to remove the ability of a player to access the car inventory? I don't believe it's possible to remove the action but is it possible to block in some other way? Like check the player's inventory is open and if they're in range of a car, kick them out of it or something?

The only thing I can come up with is checking the inventory of the car and if it changes, I know someone is accessing it, but this doesn't stop the player from seeing what is in it.

Any ideas welcome and thanks in advance!

Share this post


Link to post
Share on other sites

Why is something in the inventory if you don't want people to see what's in the inventory?

Share this post


Link to post
Share on other sites

Basically, I want some players to be able to access it but not others, don't want to get too bogged down in the details though!

Share this post


Link to post
Share on other sites

The addWhateverCargo commands are local, meaning they only affect the client it's run on, so just have the one player execute that instead of addWhateverCargoGlobal commands. You'll run into issues where not everyone sees the same, but you want that. :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×