SCRIPT ERROR: Execution of native 000000002f7a49e6 in script host failed. InvokeNative: execution failed: Argument at index 1 was null

Hello everyone, whenever i start my server and someone spawns it gives me a spam of this error on the console:
SCRIPT ERROR: Execution of native 000000002f7a49e6 in script host failed.
InvokeNative: execution failed: Argument at index 1 was null

I already updated the artifacts and disabled ■■■■■■■. Thank you.

1 Like

Something with TriggerClientEventInternal
https://runtime.fivem.net/doc/natives/#_0x2F7A49E6

2 Likes

Does it mention any other info like which resource?

1 Like

i have some script errors, i disable the scripts but i still get the error @TheIndra

1 Like

how do i fix it? @TerbSEC

1 Like

Can you show part of the log?

1 Like

@TheIndra what log?

1 Like

Your server log around that error

@TheIndra https://media.discordapp.net/attachments/553224868154441752/611575054710341642/unknown.png?width=1192&height=671

News?

I believe it may be due to having a full inventory but I am not 100% sure, it definitely has something to do with inventory because it almost always occurs when people are trying to buy things at the stores

SCRIPT ERROR: Execution of native 000000002f7a49e6 in script host failed.
InvokeNative: execution failed: Argument at index 1 was null.

Di you solve it, please??

did u solved it?

@TheIndra I have the same error

I Don’t know what is causing the problem. Could you please help me?

4 Likes

same error any news?

ESX

If you probably have OneSync you need to go on the script folder and open the server.lua and you go have something like this:

({ msgType = 'serverStart', hostname = 'lovely', maxplayers = 32 })

and replace for this:

({ msgType = 'serverStart', hostname = 'lovely', maxplayers = 255 })

It worked for me :slight_smile:

3 Likes

To all the people wondering what this line means

SCRIPT ERROR: Execution of native 000000002f7a49e6 in script host failed.

I now hopefully have the answers at least I solved the problem by doing the following

The error is pasted in the console if vRP can not read the variables it is especially “source” making trouble

You can resolve this problem by “Tabling” I do not know how grammatically correct that is written, but put all your variables inside vRP functions in tables like in this picture https://i.imgur.com/nn2a2DW.png

Here in this script I also had to put all my variables inside tables in order for it to work https://i.imgur.com/ATV6lOi.png

If you have any questions then reply to this message, I will check regularly to answer any questions

My English is not the best I hope this makes sense

2 Likes

How does it work for ESX?

2 Likes

I believe it is the same, are you able to attach an image so i can assist you?

2 Likes

I get this I’m useing vrp with trew hud ui