Advertisement
FL1K3R

Requesting Net Control on entity

Mar 5th, 2017
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. local nwid = NetworkGetNetworkIdFromEntity(entityid)
  2. if NetworkDoesNetworkIdExist(nwid) then
  3.     SetNetworkIdExistsOnAllMachines(nwid, true)
  4.     NetworkRequestControlOfNetworkId(nwid)
  5.     while not NetworkHasControlOfNetworkId(nwid) do
  6.         Citizen.Wait(0)
  7.     end
  8.     DeleteEntity(entityid)
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement