xxxxxxxxxx
local exists = false
local ped = nil
if config.NetId ~= nil then
NetworkRequestControlOfNetworkId(config.NetId)
NetworkRequestControlOfEntity(NetToPed(config.NetId))
if NetworkDoesNetworkIdExist(config.NetId) or DoesEntityExist(NetToPed(config.NetId)) then
local EntityCheck = NetToPed(config.NetId)
if DoesEntityExist(EntityCheck) then
ped = EntityCheck
end
exists = true
else
print( "Couldn't find NETWORK ID: " .. config.NetId)
end
end