Skip to content

Commit

Permalink
feat(getVehicleConfig): drivenSpawnLocked
Browse files Browse the repository at this point in the history
  • Loading branch information
artur-michalak committed Aug 28, 2024
1 parent b4f6859 commit 9d8e413
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shared/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ function public.getVehicleConfig(vehicle)

local noLock = findConfigValue(filteredConfig, 'noLock', false)
local spawnLocked = noLock and 0.0 or findConfigValue(filteredConfig, 'spawnLocked', 1.0)
local drivenSpawnLocked = noLock and 0.0 or findConfigValue(filteredConfig, 'drivenSpawnLocked', 1.0)
local carjackingImmune = findConfigValue(filteredConfig, 'carjackingImmune', false)
local lockpickImmune = findConfigValue(filteredConfig, 'lockpickImmune', false)
local shared = findConfigValue(filteredConfig, 'shared', false)
Expand All @@ -108,6 +109,7 @@ function public.getVehicleConfig(vehicle)

return {
spawnLocked = spawnLocked,
drivenSpawnLocked = drivenSpawnLocked,
noLock = noLock,
carjackingImmune = carjackingImmune,
lockpickImmune = lockpickImmune,
Expand Down

0 comments on commit 9d8e413

Please sign in to comment.