1
0
Fork 0
forked from Simnation/Main
Main/resources/[Developer]/[Nordi]/0r-atmrobbery/modules/bridge/server.lua
2025-06-07 08:51:21 +02:00

19 lines
603 B
Lua

--[[ Load the required file based to the server framework ]]
local success, result = pcall(lib.load, ('modules.bridge.%s.server'):format(shared.framework))
if not success then
lib.print.error(result)
end
if Config.Hack.tabletItem then
server.CreateUseableItem(Config.Hack.tabletItem, function(source)
TriggerClientEvent(_e('client:hacking:onAtmTabletUsed'), source)
end)
end
if Config.Hack.phoneItem then
server.CreateUseableItem(Config.Hack.phoneItem, function(source)
TriggerClientEvent(_e('client:hacking:onHackPhoneUsed'), source)
end)
end