Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Commit 0ce34fd

Browse files
committed
Fixed the death issue.
1 parent 649883f commit 0ce34fd

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/client/main.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,14 @@ RegisterNUICallback('CreateCharacter', function (data)
210210

211211
end)
212212

213+
exports('GetUseEssential', function ()
214+
return MX.essentialmode
215+
end)
216+
213217
RegisterNUICallback('PlayCharacter', function (data)
214218
MX:Cam(false)
215219
SetNuiFocus(false, false)
216-
220+
FreezeEntityPosition(PlayerPedId(), true)
217221
MX:DelEntity()
218222
DisplayRadar(1)
219223
TriggerServerEvent('mx-multicharacter:CheckCharacterIsOwner', data.data)
@@ -236,10 +240,6 @@ RegisterNUICallback('SelectCharacter', function (data)
236240
end
237241
end)
238242

239-
exports('GetUseEssential', function ()
240-
return MX.essentialmode
241-
end)
242-
243243
exports('GetCid', function ()
244244
return MX.CitizenId
245245
end)

0 commit comments

Comments
 (0)