• Check if player has picked up a prop client side.
    4 replies, posted
Is there possibly a function to check if a player has picked up a small prop(object) client side? If this helps: I need a function client side that can check if the player has just picked up a small prop, and if so play a sound.
Do you mean with the gravgun? [editline]15th February 2017[/editline] If so, here is the hook. [url]http://wiki.garrysmod.com/page/GM/GravGunOnPickedUp[/url] [editline]15th February 2017[/editline] Yeah I guess that was dumb lol, the hook I gave is serverside. Sorry lol.
-snip-
There doesn't seem to be a direct way. However you can always use the net library to notify the client. [url]http://wiki.garrysmod.com/page/Net_Library_Usage[/url] So use net.Start in the GravGun Hook and send it to the player who was given in the parameter. In a client file you can then use net.Receive. See the link above on how to use the net library in detail.
[QUOTE=HenryK;51827905]Is there possibly a function to check if a player has picked up a small prop(object) client side? If this helps: I need a function client side that can check if the player has just picked up a small prop, and if so play a sound.[/QUOTE] Can't you just do this server sided, then Network it over to client? I agree with MrRalgoman's second post
Sorry, you need to Log In to post a reply to this thread.