Hi. I currently have problems with cars in the city by npc’s. When walking up to their cars its locked, how to get cars unlocked by default?
Hello, vehicles aren’t locked by default, a script is locking them for you.
Look for these natives in your scripts :
Or anything related to locked vehicle doors.
I cannot find it in my scripts files. Do you know what scripts have these?
It should be somewhere.
It could be any script, without knowing your scripts I can’t really help you.
all i have is qbdoorlock and qbvehiclekeys
Well there’s your answer then…
Search in these scripts then, it could be in qbvehiclekeys, if you have a link of the exact version you have I could potentially look at it.
You need to do this yourself.
if you could read the message above me you wouldnt type this
Seem to be Config.Rob
, try to disabled it.
Haven’t looked into it that much to be honest.
its solved, thanks for your help!
You’re welcome
maybe a tiny bit to late but if you are using easy TXadmin for the setup on QB-Core - then it looks like this
SetVehicleDoorsLocked(entering, 1)
Client side of qb keys
its in the vehiclekeys config bud
Config.LockNPCDrivingCars = false – Lock state for NPC cars being driven by NPCs [true = locked, false = unlocked]
Config.LockNPCParkedCars = false – Lock state for NPC parked cars [true = locked, false = unlocked]
set these to false and it should work
hey where do i put this ??