mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 07:01:32 +00:00
Fixed exploiting markers, closes #37
This commit is contained in:
+6
-2
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user