Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function InitiateHouseLoot()
- Citizen.CreateThread(function()
- while true do
- Citizen.Wait(5)
- local letSleep = true
- if inSideRobHouse then
- for k,v in pairs(Config.LootSpots) do
- local entity, entityDst = GetClosestObject(v.model)
- if DoesEntityExist(entity) and entityDst < Config.LootDistance then
- local Coords = GetEntityCoords(entity)
- DrawText3Ds(Coords.x, Coords.y, Coords.z + 0.5, "[E] For å søke " .. v.name)
- letSleep = false
- if IsControlJustReleased(0, 38) then
- end
- end
- end
- else
- break
- end
- if letSleep then
- Citizen.Wait(1500)
- end
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement