• DarkRP Pro Lockpick
    1 replies, posted
I'm having trouble editing the Lockpick I want to edit the Lockpick to make it unlock quicker to use as an item in a donator job. Thanks.
Do not edit the lockpick code itself. [url]http://wiki.darkrp.com/index.php/Hooks/Shared/lockpickTime[/url] Use that hook and return any lockpick time you want, ex: [lua] local donatorJobLockpickTime = 5 hook.Add("lockpickTime", "donator", function(client, door) if client:getJobTable().donatorJob then return donatorJobLockpickTime end end) [/lua] Also add the variable [lua]donatorJob = true[/lua] to your donator job table in [code]addons/darkrpmodification/lua/darkrp_customthings/jobs.lua[/code] If you don't use the darkrpmodification addon yet, here it is: [url]https://github.com/fptje/darkrpmodification[/url] References: [url]http://wiki.garrysmod.com/page/hook/Add[/url] [url]http://wiki.darkrp.com/index.php/Functions/Player/Shared/getJobTable[/url]
Sorry, you need to Log In to post a reply to this thread.