This commit is contained in:
Nordi98 2025-06-11 23:29:40 +02:00
commit 857f210323
3 changed files with 9 additions and 4 deletions

View file

@ -5,7 +5,6 @@ game 'gta5'
lua54 'yes'
client_scripts {
'@NativeUI/NativeUI.lua',
'@ox_lib/init.lua',
'config/*.lua',
'client/*.lua'

View file

@ -105,12 +105,12 @@ Citizen.CreateThread(function()
end
-- lock vehicle with key
if (Config.lockKey and IsControlJustPressed(0, Config.lockKey)) then
--[[ if (Config.lockKey and IsControlJustPressed(0, Config.lockKey)) then
local vehicle = GetClosestVehicle(GetEntityCoords(PlayerPedId()), 10.0)
if (DoesEntityExist(vehicle) and IsVehicleOrKeyOwner(vehicle)) then
ToggleLock(vehicle, GetVehicleDoorLockStatus(vehicle) ~= LockStatus.Locked)
end
end
end ]]
end
end)
@ -799,3 +799,9 @@ local entityEnumerator = {
end
end, false)
]]
RegisterKeyMapping("vehicleLock", "Vehicle Lock", "keyboard", "PAGEUP")
RegisterCommand("vehicleLock", function()
TriggerEvent("VKC:toggleLockOnPlayer")
end, false)

View file

@ -12,7 +12,7 @@ Config.LogMenu = {
Config.Zonen = {
ambulance = {
Job = "ambulance",
Chiefrang = 11,
Chiefrang = 7,
Schluesselkasten = vector3(-1843.8058, -367.9872, 39.7909),
EnabledGrade = 2,
EnabledMarker = true,