Shaz
21
same its spaming this in console
InvokeNative: execution failed: Argument at index 1 was null.
SCRIPT ERROR: Execution of native 000000002f7a49e6 in script host failed.
It is a little guessing gam when I can’t see your code, but first of all it looks like you didn’t spell the functions right. But like
I said no code = only guessing rewrite all your functions to:
vRP.[function]
Instead of
vRP:[function]
Mind the difference I swapped out the : with .
If it is spelled right try putting all your variables inside curly brackets like so:
vRP.getUserId({source})
vRP.[function]({var1, var2})
Send your server.lua and client.lua so I can help you 
Shaz
24
server.lua (1.2 KB) client.lua (27.0 KB)
Try using these files instead I modified them a little bit mainly just cleaning up all the unused variables and tried using curly brackets.
Hope it helps if your console outputs any line error I would be more than happy to hear from you since it could help troubleshooting a whole lot.
client.lua (27.0 KB) server (2).lua (1.1 KB)
I just switch to the one you posted and still I get this
sorry on and off just got a new server computer just taking my time with it. I do what to say thanks for you to help me out with this.
1 Like
Sry I haven’t responded in a while, but I have no clue how to fix the “red error”. I have done everything I did for myself to make my scripts work.
Regarding your proxy call errors you probably haven’t linked to the vRP framework probably or linked up to the vRP proxy.
I am having like the same issue and y have this errors at my console
https://gyazo.com/0a4b3ad9965131280afa42fe76f95c64
1 Like
Insert all your function variables into an array like this vRP.getUserId({all your variables})
1 Like
I am having the same issue, It has only started happening too. When I connect into game, It doesnt show the character ui and it shows this error in my server logs here
Good I find this error can give me a hand.
I mean that in the game I change the year is not correct since 2013 comes out[client.zip|attachment]
Me Files
Ciente
client.zip (7.6 KB)
Servidor
server.rar (497 Bytes)
Config
config.rar (582 Bytes)
locale
es.rar (589 Bytes)
I have some new updates for this topic
Because i was tired and didnt think at all, I found out that this error happens whenever the framework (VRP or ESX) cant find the user to e.g. give an item.
I use VRP right now so i can only show an example in VRP layout
local user_id = vRP.getUserId({source})
vRP.giveInventoryItem({player,itemName,amount,true})
So as you can see I try to give the variable “player” an item but I have defined the user_id as the player.
So of course the VRP framework don’t know who to give an item.
I can only assume that this error:
SCRIPT ERROR: Execution of native 000000002f7a49e6 in script host failed.
Happens whenever the user to e.g. give an item is unknown
If your console refers to a line in the files you are lucky, unless you just have to check every line for unknown variables.
1 Like
Try to put the source inside these brackets {} just like in this image https://i.imgur.com/wZoNHan.png
escapes my understanding I’ve been stuck for days with this and I can’t find the solution
can you help me with my files for esx?
1 Like
on all lines and all resource files?
sorry for my misuse of the english language i use google translator
Replace line 12 in your server.lua with this line:
local xPlayer = ESX.GetPlayerFromId({source})
Try to restart the server after you change line 12 and let me know if it do not work
2 Likes
change line 12 restart server and error persists
it was not solved
I didn’t read the whole topic.
But for me this happens when I’m triggering an client event and forgot to declare the receiving playerId.
Or the playerId is just nil.
I no longer know what can be, check the files 1000 times I hope someone take pity on me and lend me a hand
Exactly a better explanation of my long explanations, thank you.