Custom Hack
On this page, I'll give you snippets on how to add custom hack to Hacker V.
Config (shared/cfg.lua)
['custom_hack'] = {
['objects'] = {'prop_bin_01a'},
['offset'] = vector3(-0.25, -0.8, 0.25),
['label'] = '[E] Hack the garbage',
['icon'] = 'fa-solid fa-terminal',
['event'] = 'hackermod:client:hackGarbage', ['eventType'] = 'client',
['canInteract'] = function(entity)
return not interactableObjects['custom_hack'][GetEntityCoords(entity)]
end,
['cooldown'] = 0,
['requiredBotnet'] = 0,
},Custom hack (client/custom_hack.lua)
client/custom_hack.lua)Last updated