kylemcshea / dream-postal

📦GoPostal Job for FiveM: Made for QB & ESX. Integrated with ox_target & qb-target for a premium gameplay experience. Elevate your server now! 🚀
https://www.youtube.com/watch?v=fSwJO3C85E0
55 stars 12 forks source link

Solution for servers using esx_multicharacter #24

Open lush0n3 opened 10 months ago

lush0n3 commented 10 months ago

Added a fix to prevent player coordinates error when connecting. multicharacter is not recognized by the player immediately and this causes this error.

SCRIPT ERROR: @dream-postal/client.lua:755: attempt to perform arithmetich on a nil value (upvalue 'POSTAL_BOSS_COORDS')

fn (@dream-postal/client.lua:755)

You can improve it and adapt it to your programming style, I just added it to offer a solution!