[RELEASE][ESX] Persistent Death

mysql
death
esx
persistence

#85

Greatly varies depending on your skin mod. I have it fixed on my server but I’m using my own skin management. Which are you using?


#86

im using esx_skin i think

Im using :
esx-skin
skinchanger


#87

Rename playerSpawned on line 35 of my client.lua file to something else like salty_death:loaded. This will prevent it from happening automatically at spawn. Now, go into esx_skin and add TriggerEvent('salty_death:loaded') to line 304 before the end) .

This should make this script run after the esx_skins script spawns the character.


#88

i have to change the triggerevent on the client.lua file in esx_skin ?

edit : like this http://prntscr.com/k5v8bg ?


#89

No, you rename the event in the client.lua of salty_death, and trigger an additional event from esx_skin. You don’t rename the event in ESX skin.

It would look like this:

ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin, jobSkin)

        if skin == nil then
          TriggerEvent('skinchanger:loadSkin', {sex = 0}, OpenSaveableMenu)
        else
          TriggerEvent('skinchanger:loadSkin', skin)
        end
    TriggerEvent('salty_death:loaded')
      end)

#90

thank you for the help and fast reply <3


#91

i must be doing something wrong


#92

not

respawn to hospital menu timer


#93

My server still does not record death.


#94


#95


#96

Dead when joined server.


#97

This is kinda awkward


So… You die and you stand up and walk around… anyway to stop this? lmao


#98

What skin system are you using?


#99

esx_skin and I followed how it was done above and still same thing.


#100

This resource isn’t easily compatible with some skin systems. I’ll eventually update it to hook into popular ones.


#101

so when i join in. using esx_skin and all other normal esx scripts. and this says its compatible with esx right? i load onto my character. than drop dead even if in the database IsDead is set to 0. than i refresh the db and its set too 1… so i /revive and now its 0 again okay… i log out… log back in… i drop dead again… any ideas?