Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 6ad05d9

Browse files
committed
Refactor hitman functions and add RootLodge event handler
1 parent 9838b87 commit 6ad05d9

2 files changed

Lines changed: 20 additions & 3 deletions

File tree

hitman/[Core]/[Client]/functions.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@ function tipNotification(text, time)
114114
VORPcore.NotifyTip(text, time)
115115
end
116116

117-
118-
119117
function DrawInfo(text, x, y, size)
120118
local xc = x / 1.0;
121119
local yc = y / 1.0;

hitman/[Core]/[Server]/serverfunctions.lua

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,23 @@ function devserverdebug(text)
44
if Config.Debug then
55
print('^1[Hitman Contracts] ^7' .. text)
66
end
7-
end
7+
end
8+
9+
10+
--------------------------------------------------------------------------------
11+
----------------------------------- RootLodge -----------------------------------
12+
--------------------------------------------------------------------------------
13+
local VORPcore = {}
14+
TriggerEvent("getCore", function(core) VORPcore = core end)
15+
function Wait(args) Citizen.Wait(args) end
16+
function Invoke(args, bool) Citizen.InvokeNative(args, bool) end
17+
--------------------------------------------------------------------------------
18+
-- Event Register
19+
RegisterServerEvent('RootLodge:HitContracts:S:DevDebug')
20+
--------------------------------------------------------------------------------
21+
22+
AddEventHandler('RootLodge:HitContracts:S:DevDebug', function(text)
23+
if Config.Debug then
24+
print('^1[Hitman Contracts] ^7' .. text)
25+
end
26+
end)

0 commit comments

Comments
 (0)