NetworkResurrectLocalPlayer Crash When Revive

Before continuing, please make sure that your issue/crash has not been filed before on this forum. If it has, please provide additional information in the existing forum topic by filling out the template there.

To provide valuable feedback for OneSync issues or crashes, please fill out the following template as much as possible.

Client

Using canary? Not Using
**Windows version: ** 21H2 (19044.1586)
System specifications:
CPU : Intel® Core™ i7-7700K
RAM : 16.0 GB
GPU : GeForce® GTX *1050 Ti

Server

Operating system: Windows Server 2019 Datacenter (Version : 1809)
Artifact version: 5402 (Build Server Windows)
IP address: 5.63.9.235:30120
Resources: rdx_ambulancejob
System specifications:
CPU : Intel® Xeon® Processor E5-2690 v2
RAM : 8 GB

Incident

Summary: After the revive, the client crashes
Expected behavior:
N/A
Actual behavior:
N/A
Steps to reproduce:
When i comment NetworkResurrectLocalPlayer no crash but when i uncomment this native i crash
Server/Client? Client Side Only
Files for repro (if any):
CfxCrashDump_2022_03_20_07_27_57.zip (2.0 MB)
Error screenshot (if any):
Crash
.dmp files/report IDs:
N/A
Any additional info: This is for some player’s & not for everyone

What gamebuild you are using? Try to set the 1355

I change my server to 1355 but crash again
my build is 1436

Can you send whole script or at least some context. If you just call NetworkResurrectLocalPlayer the game won’t crash as spawnmanager calling this native on initial spawn.

this is my revive function :

function RespawnPed(ped, coords)
	TriggerServerEvent('rdx_ambulancejob:removeMyBlip')
	Citizen.InvokeNative(0x239A3351AC1DA385, ped, coords.x, coords.y, coords.z, false, false, false, true)
	Citizen.InvokeNative(0xEA23C49EAA83ACFB ,coords.x, coords.y, coords.z, coords.heading, true, false) -- NetworkResurrectLocalPlayer
	Citizen.InvokeNative(0x239528EACDC3E7DE, ped, false)
	TriggerEvent('playerSpawned', coords.x, coords.y, coords.z, coords.heading)
	ClearPedBloodDamage(ped)
	ClearPedSecondaryTask(ped)
	SetEnableHandcuffs(ped, false)
	DisablePlayerFiring(ped, false)
	SetPedCanPlayGestureAnims(ped, true)
	FreezeEntityPosition(ped, false)
	DisplayRadar(true)
	RDX.UI.Menu.CloseAll()
end

I tried this native on an empty script server and it was correct

I feel it has something to do with my skin and the crash is because of it

The rest of the players do not crash and I reinstalled my RedM but it is the same thing again

The problem was solved by updating the graphics card driver