• Where can I find these functions?
    1 replies, posted
I am looking for a function that checks to see if a player has a weapon. Where would I find functions that can be called on the player. I already know these functions for instance. Is there somewhere I can find a list of all that I can do? ply:StripWeapon('weaponname') Removes listed weapon ply:Give('weaponname') gives listed weapon ply:SelectWeapon('weaponname') equips listed weapon
They are in the Player Meta-table. You can find them on the wiki.garrysmod.com site, or you can print the list yourself. Here: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/metatables/__metatable_loader.lua[/url] PrintTable each, or create a tool to save them to a text file, both server and client files. These aren't virgin outputs; they contain some of my helper function, but this may help you. cl_ are functions you can call from the client side, and sv_ are server-side functions [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/metatables/__metatables.rar[/url] [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/metatables/__metatables_sorted_func_names.rar[/url]
Sorry, you need to Log In to post a reply to this thread.