Skip to content

Commit

Permalink
Merge pull request #95 from Scaarus/patch-2
Browse files Browse the repository at this point in the history
Fix variable initialization
  • Loading branch information
AmirrezaJaberi authored Feb 4, 2024
2 parents 9ba1138 + 90ed8c6 commit 53bf69a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/fire-server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1289,8 +1289,9 @@ local SV_VEHICLES, SV_PEDS, SV_OBJECT = {}, {}, {}
-- Event Handler for when an entity is created
AddEventHandler("entityCreated", function(ENTITY)
if DoesEntityExist(ENTITY) then
local TYPE, OWNER, POPULATION, MODEL, HWID = GetEntityType(ENTITY), NetworkGetFirstEntityOwner(ENTITY),
GetEntityPopulationType(ENTITY), GetEntityModel(ENTITY), GetPlayerToken(OWNER, 0)
local OWNER = NetworkGetFirstEntityOwner(ENTITY)
local TYPE, POPULATION, MODEL, HWID = GetEntityType(ENTITY), GetEntityPopulationType(ENTITY),
GetEntityModel(ENTITY), GetPlayerToken(OWNER, 0)

-- Execute actions based on anti-cheat settings
-- Anti-Blacklist Object Management
Expand Down

0 comments on commit 53bf69a

Please sign in to comment.