Client
Using canary? NO
Windows version: win 10 v2004(19041.450)
System specifications: i7 , ram 16 , ssd
Server
Operating system: win 10 v2004(19041.450)
Artifact version: FXServer 2901
IP address: local
Resources:
System specifications: i7 , ram 16 , ssd
Incident
Summary: problem with entityCreating
which if you spam the CreateObject and block it with CancelEvent()
eventually that object will be shown in the other user’s game
Expected behavior: dont network / shown the canceled object no matter what ?
Actual behavior: will half network or just shown the canceled object even if you cancel it everytime
Steps to reproduce: just create an object with script and spam it like 20 times ( need even less ) to see that it will be shown on other players system
Server/Client?
Files for repro (if any):
local SelectedPlayer = PASS ID HERE --SelectedPlayer is the other players id
function SpawnObjOnPlayer(modelHash)
local coords = GetEntityCoords(GetPlayerPed(SelectedPlayer), true)
local obj CreateObject(modelHash, coords.x, coords.y, coords.z, true, true, true)
if attachProp then
AttachEntityToEntity(obj ,GetPlayerPed(selectedPlayer), GetPedBoneIndex(GetPlayerPed(selectedPlayer), 57005), 0.4, 0, 0, 0, 270.0, 60.0, true ,true ,false, true, 1, true)
end
end
Citizen.CreateThread(function()
while true do
SpawnObjOnPlayer(GetHashKey("p_med_jet_01_s"))
SpawnObjOnPlayer(GetHashKey("p_med_jet_01_s"))
SpawnObjOnPlayer(GetHashKey("p_med_jet_01_s"))
SpawnObjOnPlayer(GetHashKey("p_med_jet_01_s"))
SpawnObjOnPlayer(GetHashKey("p_med_jet_01_s"))
SpawnObjOnPlayer(GetHashKey("p_med_jet_01_s"))
SpawnObjOnPlayer(GetHashKey("p_med_jet_01_s"))
SpawnObjOnPlayer(GetHashKey("p_med_jet_01_s"))
SpawnObjOnPlayer(GetHashKey("p_med_jet_01_s"))
SpawnObjOnPlayer(GetHashKey("p_med_jet_01_s"))
SpawnObjOnPlayer(GetHashKey("p_med_jet_01_s"))
SpawnObjOnPlayer(GetHashKey("p_med_jet_01_s"))
SpawnObjOnPlayer(GetHashKey("p_med_jet_01_s"))
SpawnObjOnPlayer(GetHashKey("p_med_jet_01_s"))
SpawnObjOnPlayer(GetHashKey("p_med_jet_01_s"))
SpawnObjOnPlayer(GetHashKey("p_med_jet_01_s"))
SpawnObjOnPlayer(GetHashKey("p_med_jet_01_s"))
SpawnObjOnPlayer(GetHashKey("p_med_jet_01_s"))
SpawnObjOnPlayer(GetHashKey("p_med_jet_01_s"))
SpawnObjOnPlayer(GetHashKey("p_med_jet_01_s"))
Citizen.Wait(1)
end
end)
AddEventHandler('entityCreating', function(entity)
CancelEvent()--even if i cancel all the objects it will not work as intended
end)
Error screenshot (if any):
.dmp files/report IDs:
Any additional info:
the problem is the entity will be canceled but the ghost of that object will be shown to all others and by (ghost) i mean you can see that object clearly but you can walk throw it
i guess i explained all of it if there is a question or you need more info please ask
i made a video to demonstrate the issue ,