Files
2025-01-23 18:00:31 -08:00

11 lines
393 B
Lua

Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local playerCoords = GetEntityCoords(PlayerPedId())
for k, v in pairs(Config.PumpModels) do
local entity = GetClosestObjectOfType(playerCoords, 10.0, v, false, false, false)
SetEntityInvincible(entity, true)
FreezeEntityPosition(entity, true)
end
end
end)