Skip to content

Commit

Permalink
refactor(client): release models (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
solareon authored Jun 23, 2024
1 parent dce6275 commit c9a2182
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ local function createSeller()
for _, current in pairs(config.sellLocations) do
current.model = type(current.model) == 'string' and joaat(current.model) or current.model
lib.requestModel(current.model)
local currentCoords = vec4(current.coords.x, current.coords.y, current.coords.z - 1, current.coords.w)
local ped = CreatePed(0, current.model, currentCoords.x, currentCoords.y, currentCoords.z, currentCoords.w, false, false)
local ped = CreatePed(0, current.model, current.coords.x, current.coords.y, current.coords.z - 1, current.coords.w, false, false)
SetModelAsNoLongerNeeded(current.model)
FreezeEntityPosition(ped, true)
SetEntityInvincible(ped, true)
SetBlockingOfNonTemporaryEvents(ped, true)
Expand Down

0 comments on commit c9a2182

Please sign in to comment.