kanersps / essentialmode

A FiveM project
https://docs.kanersps.pw/docs/essentialmode
GNU Affero General Public License v3.0
82 stars 98 forks source link

ERROR- When player join in F8 #69

Closed Tinky124 closed 4 years ago

Tinky124 commented 4 years ago

1gh

So i am using lastest version of essentialmode and i checked the line of error it doesnt work anymore with this:

RegisterNetEvent("esx:playerLoaded") AddEventHandler("esx:playerLoaded", function(playerData) ESX.PlayerData = playerData end)

So i changed to:

RegisterNetEvent("esx:playerLoaded") AddEventHandler("esx:playerLoaded", function(playerData) PlayerData = playerData end)

I dont know why ESX.PlayerData = playerData doesnt work anymore??

kanersps commented 4 years ago

Uhm, I think you've updated to an unsupported version of ESX for FiveM.

Could you try the following ESX version?: https://github.com/zap-fivem/esx/

On Sat, 18 Apr 2020 at 19:42, Tinky notifications@github.com wrote:

[image: 1gh] https://user-images.githubusercontent.com/48660658/79644911-3f9f8b80-81ac-11ea-95ff-e8f6cbbb379d.png

So i am using lastest version of essentialmode and i checked the line of error it doesnt work anymore with this:

RegisterNetEvent("esx:playerLoaded") AddEventHandler("esx:playerLoaded", function(playerData) ESX.PlayerData = playerData end)

So i changed to:

RegisterNetEvent("esx:playerLoaded") AddEventHandler("esx:playerLoaded", function(playerData) PlayerData = playerData end)

I dont know why ESX.PlayerData = playerData doesnt work anymore??

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kanersps/essentialmode/issues/69, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC52CD3ZPYIVNUMSSHRORL3RNHQ7TANCNFSM4MLOBMBQ .

Tinky124 commented 4 years ago

@kanersps thanks it fixed my problem!