TitansProductions / TP-Advanced-Zombies

An advanced FiveM zombies script which provides you many features in purpose to enjoy and create a realistic zombie apocalypse server.
Apache License 2.0
53 stars 22 forks source link

Zombies as not a real entitys and No Death in Stats #9

Open yvanb26 opened 1 year ago

yvanb26 commented 1 year ago

Hi there, i have 2 problem with this fabulous script !

the zombies or the player are not detected as real entities by the game/script and therefore some resources like nbk_damagemessage do not work... I search and try to modify bits of code but I can't find it. Nothing...

Second point, the death of the players is not counted in the Statistics, I think that the concern comes from "Disc-death"?! :

AddEventHandler('disc-death:onPlayerRevive', function(data)
     isDead = false
end)

I don't know much about Lua, even if it looks like php... if someone could help me, thanks!

(Sorry for my bad English, I use Google translate)

yvanb26 commented 1 year ago

I answer myself for the recording of the number of deaths in the statistics, it is not mentioned anywhere but I found the information on the Forum of cfx.re :

Supporting QBCore qb-ambulancejob script for death counting but on ESX you must manually call TriggerServerEvent("tp-advancedzombies:updatePlayerStatistics", "deaths", 1) in your ambulance script where function RemoveItemsAfterRPDeath() is called.