diff --git a/server/main.lua b/server/main.lua index ab3da8b6..880d3a03 100644 --- a/server/main.lua +++ b/server/main.lua @@ -99,8 +99,12 @@ end RegisterServerEvent('esx_jobs:startWork') AddEventHandler('esx_jobs:startWork', function(item) - PlayersWorking[source] = true - Work(source, item) + if not PlayersWorking[source] then + PlayersWorking[source] = true + Work(source, item) + else + print(('esx_jobs: %s attempted to exploit the marker!'):format(GetPlayerIdentifiers(source)[1])) + end end) RegisterServerEvent('esx_jobs:stopWork')