Advertisement
Kevick

Spawn Unique

Aug 28th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. Citizen.CreateThread(function()
  2.     while true do
  3.         Citizen.Wait(0)
  4.         if Instanced then
  5.             for i=0, 255 do
  6.                 local otherPlayerPed = GetPlayerPed(i)
  7.                
  8.                 if otherPlayerPed ~= PlayerPedId() then
  9.                     SetEntityLocallyInvisible(otherPlayerPed)
  10.                     SetEntityNoCollisionEntity(PlayerPedId(),  otherPlayerPed,  true)
  11.                 end
  12.             end
  13.         end
  14.     end
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement