Welcome to the forum, Guest

To access forum content and all of our services, you must register or log in to the forum. Joining the forum and all content on the forum is completely free.

The world's largest FiveM Forum and GTA 5 Forum address

Hello dear member,
We work 24/7 to provide the most valuable content that will be of use to you,
you can share content and support the entire FiveM & GTA 5 community.

Script Doorlock / Create Door System [QBCore] | [QBUS]

RamboFR05TY

Member
Joined
Oct 6, 2021
Messages
2
Reaction score
0
Points
41
Location
South Africa
Love the conversion.

I got this error:
Code:
[    c-scripting-core] Creating script environments for doorlock
[     script:doorlock] Error loading script server/main.lua in resource doorlock: @doorlock/server/main.lua:81: attempt to index a nil value (global 'QBCore')
[     script:doorlock] stack traceback:
[     script:doorlock]     @doorlock/server/main.lua:81: in main chunk
[    c-scripting-core] Failed to load script server/main.lua.
[ citizen-server-impl] Started resource doorlock

Any Suggestions
 

PewPew

Silver Elite
Joined
May 1, 2021
Messages
57
Reaction score
16
Points
106
do you still have the esx version could you upload please thanks
 

010010

Bronze Elite
Joined
Aug 25, 2021
Messages
9
Reaction score
0
Points
51
Love the conversion.

I got this error:
Code:
[    c-scripting-core] Creating script environments for doorlock
[     script:doorlock] Error loading script server/main.lua in resource doorlock: @doorlock/server/main.lua:81: attempt to index a nil value (global 'QBCore')
[     script:doorlock] stack traceback:
[     script:doorlock]     @doorlock/server/main.lua:81: in main chunk
[    c-scripting-core] Failed to load script server/main.lua.
[ citizen-server-impl] Started resource doorlock

Any Suggestions
Convert it yourself then instead of bullying here.
 

mtsgaming

Member
Joined
Oct 7, 2021
Messages
2
Reaction score
1
Points
51
Location
uk
Love the conversion.

I got this error:
Code:
[    c-scripting-core] Creating script environments for doorlock
[     script:doorlock] Error loading script server/main.lua in resource doorlock: @doorlock/server/main.lua:81: attempt to index a nil value (global 'QBCore')
[     script:doorlock] stack traceback:
[     script:doorlock]     @doorlock/server/main.lua:81: in main chunk
[    c-scripting-core] Failed to load script server/main.lua.
[ citizen-server-impl] Started resource doorlock

Any Suggestions
easy fix

add this to server lua
at the top

QBCore = nil
local QBCore = exports['qb-core']:GetCoreObject()
 

RamboFR05TY

Member
Joined
Oct 6, 2021
Messages
2
Reaction score
0
Points
41
Location
South Africa
easy fix

add this to server lua
at the top

QBCore = nil
local QBCore = exports['qb-core']:GetCoreObject()
Thanks i actually managed to get it going :) with that exact line, came to post it
 

RedmanFB

Member
Joined
Sep 20, 2021
Messages
1
Reaction score
0
Points
41
Location
United States
anyone know how to add in ability to enable for gangs and jobs?
i have attempted myself and i get it to work but it disables authorizedJobs somehow
 

Login or register to get more out of the forum!

Login or register to get more out of the forum!

Register

Creating an account on the forum is completely free.

Register now
Log in

If you have an account, please login

Log in

Theme editor

Theme customizations

Graphic Backgrounds

Granite Backgrounds