[HELP] High-Phone error

When I first tried running the script it gave me the GetSharedObject error, I tried to fix it the usual way (shared_script ‘@es_extended/imports.lua’ and ‘ESX = exports[“es_extended”]:getSharedObject()’) but it didn’t seem to work, it gave me a couple of errors, after this i tried replacing the FOB variable the script created (the one that calls GetSharedObject) and replaced all the FOB-s to ESX, now it still gives me some errors but the at least the phone pops up, but there are no apps and its completely useless. any tips?

Here is the log of the errors:
[ 2520515] [b2699_GTAProce] MainThrd/ Creating script environments for high_phone
[ 2520515] [b2699_GTAProce] MainThrd/ Error loading script utils/shared.lua in resource high_phone: @high_phone/utils/shared.lua:64: wrong number of arguments to ‘insert’
[ 2520515] [b2699_GTAProce] MainThrd/ stack traceback:
[ 2520515] [b2699_GTAProce] MainThrd/ [C]: in function ‘table.insert’
[ 2520515] [b2699_GTAProce] MainThrd/ @high_phone/utils/shared.lua:64: in main chunk
[ 2520515] [b2699_GTAProce] MainThrd/ Failed to load script utils/shared.lua.
[ 2520515] [b2699_GTAProce] MainThrd/ Started resource high_phone
[ 2520515] [b2699_GTAProce] MainThrd/
[ 2520531] [b2699_GTAProce] MainThrd/ OnConnectionProgress: Downloading content manifest…
[ 2520531] [b2699_GTAProce] UV loop: httpClient/ Required resources: high_phone
[ 2520578] [b2699_GTAProce] MainThrd/ OnConnectionProgress: Downloading high_phone (0 of 1 - 3.88/17.78 MiB)
[ 2520625] [b2699_GTAProce] MainThrd/ OnConnectionProgress: Downloading high_phone (0 of 1 - 9.58/17.78 MiB)
[ 2520672] [b2699_GTAProce] MainThrd/ OnConnectionProgress: Downloading high_phone (0 of 1 - 14.36/17.78 MiB)
[ 2520718] [b2699_GTAProce] MainThrd/ OnConnectionProgress: Downloading high_phone (0 of 1 - 17.78/17.78 MiB)
[ 2520797] [b2699_GTAProce] 1516/ ResourceCache::AddEntry: Saved cache:v1:371911baf5cf2f02a97f3f3787812f271a4e765c to the index cache.
[ 2521859] [b2699_GTAProce] MainThrd/ OnConnectionProgress: Verifying high_phone (0 of 1 - 9.43/17.78 MiB)
[ 2521906] [b2699_GTAProce] MainThrd/ OnConnectionProgress: Verifying high_phone (0 of 1 - 17.65/17.78 MiB)
[ 2521922] [b2699_GTAProce] MainThrd/ Creating script environments for high_phone
[ 2521922] [b2699_GTAProce] MainThrd/ Error loading script utils/shared.lua in resource high_phone: @high_phone/utils/shared.lua:64: wrong number of arguments to ‘insert’
[ 2521922] [b2699_GTAProce] MainThrd/ stack traceback:
[ 2521922] [b2699_GTAProce] MainThrd/ [C]: in function ‘table.insert’
[ 2521922] [b2699_GTAProce] MainThrd/ @high_phone/utils/shared.lua:64: in main chunk
[ 2521922] [b2699_GTAProce] MainThrd/ Failed to load script utils/shared.lua.
[ 2521922] [b2699_GTAProce] MainThrd/ Error loading script client/bank.lua in resource high_phone: @high_phone/sh_config.lua:33: attempt to call a nil value (field ‘RegisterServerCallback’)
[ 2521922] [b2699_GTAProce] MainThrd/ stack traceback:
[ 2521922] [b2699_GTAProce] MainThrd/ @high_phone/sh_config.lua:33: in local ‘L3_1’
[ 2521922] [b2699_GTAProce] MainThrd/ @high_phone/client/bank.lua:112: in main chunk
[ 2521922] [b2699_GTAProce] MainThrd/ Failed to load script client/bank.lua.
[ 2521953] [b2699_GTAProce] MainThrd/ OnConnectionProgress: Mounted high_phone (1 of 1)

Start with fixing the errors at the root.

MainThrd/ Error loading script utils/shared.lua in resource high_phone: @high_phone/utils/shared.lua:64: wrong number of arguments to ‘insert’

My guess would be that a SQL query cannot be executed properly, thus letting the whole file not start. Could you provide a screenshot of line 64?

If I could take another guess,

Error loading script client/bank.lua in resource high_phone: @high_phone/sh_config.lua:33: attempt to call a nil value (field ‘RegisterServerCallback’)

Is related to the first issue, since it can’t call a callback that is defined in the file that couldn’t load.

Start out with fixing the first issue, if the issue persists after that just paste another screenshot here with code snippets.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.