Advertisement
Guest User

Untitled

a guest
Dec 1st, 2020
94
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local blacklisted = {--[[Blacklisted Models]]}
  2.  
  3. Citizen.CreateThread(function()
  4.     while true do
  5.       Citizen.Wait(100)
  6.  
  7.       local peds = {}
  8.  
  9.       local it, ped = FindFirstPed()
  10.       if ped then table.insert(peds, ped) end
  11.  
  12.       while true do
  13.         local ok, ped = FindNextPed(it)
  14.         if ok and ped then
  15.           table.insert(peds, ped)
  16.         else
  17.           EndFindPed(it)
  18.           break
  19.         end
  20.       end
  21.  
  22.       for _, ped in ipairs(peds) do
  23.         if not IsPedAPlayer(ped) and blacklisted[GetEntityModel(ped)] ~= nil then
  24.           DeletePed(Citizen.PointerValueIntInitialized(ped))
  25.         end
  26.       end
  27.     end
  28. end)
Advertisement
RAW Paste Data Copied
Advertisement