I installed a bunch of custom vehicles and whenever i spawn them using vMenu I don’t get the keys for the car. When I spawn in the car the engines on so i can drive but as soon as i get out it locks ands say i don’t have keys. Does anyone know how to configure the script so when i spawn a vehicle i either get the keys or only spawned vehicles don’t get keys?
Framework?
Did you just copy and paste the vehicles?
I’m using QBCore and i made all the car files fivem ready.
my server files
vMenu config -
addons.json (926 Bytes)
qb-vehiclekeys config
config.lua (3.1 KB)
qb-vehiclesale config
config.lua (1.9 KB)
qb-vehicleshop config
config.lua (4.9 KB)
and finally here is my server.cfg setup
Voice config
setr voice_useNativeAudio true
setr voice_useSendingRangeOnly true
setr voice_defaultCycle “GRAVE”
setr voice_defaultVolume 0.3
setr voice_enableRadioAnim 1
setr voice_syncData 1
QBCore locale config
setr qb_locale “en”
QBCore UseTarget
setr UseTarget false
setr inventory:framework “qb”
exec mayhem test/txData/QBCoreFramework_9EF244.base/permissions.cfg
These resources will start by default.
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
ensure baseevents
QBCore & Extra stuff
ensure oxmysql
ensure ox_lib
ensure qb-core
exec @ox_inventory/config.cfg
ensure ox_inventory
ensure [qb]
ensure [standalone]
ensure [voice]
ensure [defaultmaps]
ensure vMenu
ensure rpemotes
#dependencies
ensure [dependencies]
peds
ensure [peds]
weapons
ensure [weapons]
cars
ensure [cars]
ensure vehiclekeys_handler
ensure [local]
Permissions
add_ace group.admin command allow # allow all commands
add_principal identifier.fivem:1913517 group.admin #Darren_Kumar
Resources
add_ace resource.qb-core command allow # Allow qb-core to execute commands
Gods
add_ace qbcore.god command allow # Allow all commands
Inheritance
add_principal qbcore.god group.admin # Allow gods access to the main admin group used to get all default permissions
add_principal qbcore.god qbcore.admin # Allow gods access to admin commands
add_principal qbcore.admin qbcore.mod # Allow admins access to mod commands
i believe these are all the components necessary to do the script i want.
you have to pull all of the files from your data folders and put them in the root folder of each vehicle. each vehicle will need it own basic fxmanifest file.
it should look like this afterward.
each vehicle has to be added to [qb]/qb-core/Shared/vehicles.lua in order for them to purchased.
{ model = 'blista', name = 'Blista', brand = 'Dinka', price = 13000, category = 'compacts', type = 'automobile', shop = 'pdm' },
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.