Hi I would like to use this script but the NPC doesn’t seem to be there unless I restart the script and the NPC pops up for about 1-4 seconds then disappears… im not getting any F8 errors or any console errors im on the latest version of fivem and I have OX_lib, Es_exteneded and oxmysql installed anyone help me out?
Make sure that when you call server-side functions or events that require a player server ID (targetServerId), you are passing the correct ID. Based on your code snippet, you should adjust the call to lib.callback.await(‘revivestation:checkMoney’, false, Config.settings.price, targetId) so that instead of targetId, you pass targetServerId.
lua
Copy code
– Before this line:
local success, msg = lib.callback.await(‘revivestation:checkMoney’, false, Config.settings.price, targetId)
– It should be:
local success, msg = lib.callback.await(‘revivestation:checkMoney’, false, Config.settings.price, targetServerId)