1
0
Fork 0
forked from Simnation/Main
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' lua54 'yes'
client_scripts { client_scripts {
'@NativeUI/NativeUI.lua',
'@ox_lib/init.lua', '@ox_lib/init.lua',
'config/*.lua', 'config/*.lua',
'client/*.lua' 'client/*.lua'

View file

@ -105,12 +105,12 @@ Citizen.CreateThread(function()
end end
-- lock vehicle with key -- 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) local vehicle = GetClosestVehicle(GetEntityCoords(PlayerPedId()), 10.0)
if (DoesEntityExist(vehicle) and IsVehicleOrKeyOwner(vehicle)) then if (DoesEntityExist(vehicle) and IsVehicleOrKeyOwner(vehicle)) then
ToggleLock(vehicle, GetVehicleDoorLockStatus(vehicle) ~= LockStatus.Locked) ToggleLock(vehicle, GetVehicleDoorLockStatus(vehicle) ~= LockStatus.Locked)
end end
end end ]]
end end
end) end)
@ -799,3 +799,9 @@ local entityEnumerator = {
end end
end, false) 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 = { Config.Zonen = {
ambulance = { ambulance = {
Job = "ambulance", Job = "ambulance",
Chiefrang = 11, Chiefrang = 7,
Schluesselkasten = vector3(-1843.8058, -367.9872, 39.7909), Schluesselkasten = vector3(-1843.8058, -367.9872, 39.7909),
EnabledGrade = 2, EnabledGrade = 2,
EnabledMarker = true, EnabledMarker = true,