SCRIPT ERROR: ?👎 attempt to index a nil value (field 'lib')

i need help 3 job i have this same error i need a fix SCRIPT ERROR: ?:-1: attempt to index a nil value (field ‘lib’)

qbcore

Do you have ox_lib?

yes
ox_lib is installed

Is there a line in fxmanifest

shared_script “@ox_lib/init.lua” also can you send full error log as screenshot.

and ox_lib has a fxmanifest

I mean the line is included in job scripts?
also this is so weird I can’t tell anything without looking coded unfortunately.

i can give u acsess
if u have discord

add my discord @
djtobo031024

1 Like

I do not need the access to server, can you send me the script and ox_lib you using.

there are 3 scripts with same error

fx_version ‘cerulean’
use_experimental_fxv2_oal ‘yes’
lua54 ‘yes’
games { ‘rdr3’, ‘gta5’ }
rdr3_warning ‘I acknowledge that this is a prerelease build of RedM, and I am aware my resources will become incompatible once RedM ships.’

name ‘ox_lib’
author ‘Overextended’
version ‘3.30.6’
license ‘LGPL-3.0-or-later’
repository ‘GitHub - overextended/ox_lib: A FiveM resource and script library for Lua and JS.’
description ‘A library of shared functions to utilise in other resources.’

dependencies {
‘/server:7290’,
‘/onesync’,
}

ui_page ‘web/build/index.html’

files {
‘init.lua’,
‘resource/settings.lua’,
‘imports//client.lua’,
'imports/
/shared.lua’,
‘web/build/index.html’,
‘web/build/**/',
'locales/
.json’,
}

shared_script ‘resource/init.lua’

shared_scripts {
‘resource//shared.lua’,
– 'resource/
/shared/*.lua’
}

client_scripts {
‘resource//client.lua’,
'resource/
/client/*.lua’
}

server_scripts {
‘imports/callback/server.lua’,
‘imports/getFilesInDirectory/server.lua’,
‘resource//server.lua’,
'resource/
/server/*.lua’,
}

I sent friend request on discord.

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