Commit 331f875
authored
Remove restoreElementBaseModels() from onClientResourceStop event handler
This fixes the crashes when disconnecting/stopping the resource and there's a ped/player element loaded.
The error happened because trying to set the element model of an already destroyed element causes a memory access violation error and crashed the game.
The ped/player elements were destroyed automatically by the engine when disconnecting, so this line is not necessary.1 parent 854ca29 commit 331f875
1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
402 | | - | |
403 | 402 | | |
404 | 403 | | |
405 | 404 | | |
| |||
0 commit comments