Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
mafewtm authored Jan 20, 2024
2 parents 5a40e20 + 4543f11 commit 5c91544
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 55 deletions.
57 changes: 6 additions & 51 deletions client/job.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,9 @@ local function doCarDamage(currentVehicle, veh)
SetVehicleEngineHealth(currentVehicle, engine)

if smash then
SmashVehicleWindow(currentVehicle, 0)
SmashVehicleWindow(currentVehicle, 1)
SmashVehicleWindow(currentVehicle, 2)
SmashVehicleWindow(currentVehicle, 3)
SmashVehicleWindow(currentVehicle, 4)
for i = 0, 4 do
SmashVehicleWindow(currentVehicle, i)
end
end

if damageOutside then
Expand All @@ -70,10 +68,9 @@ local function doCarDamage(currentVehicle, veh)
end

if popTires then
SetVehicleTyreBurst(currentVehicle, 1, false, 990.0)
SetVehicleTyreBurst(currentVehicle, 2, false, 990.0)
SetVehicleTyreBurst(currentVehicle, 3, false, 990.0)
SetVehicleTyreBurst(currentVehicle, 4, false, 990.0)
for i = 1, 4 do
SetVehicleTyreBurst(currentVehicle, i, false, 990.0)
end
end

if body < 1000 then
Expand Down Expand Up @@ -477,48 +474,6 @@ else
end

CreateThread(function()
-- Evidence Storage
for _, v in pairs(sharedConfig.locations.evidence) do
lib.zones.box({
coords = v,
size = vec3(2, 2, 2),
rotation = 0.0,
debug = config.polyDebug,
onEnter = function()
if QBX.PlayerData.job.type == 'leo' and QBX.PlayerData.job.onduty then
inPrompt = true
lib.showTextUI(Lang:t('info.evidence'))
uiPrompt('evidence')
end
end,
onExit = function()
lib.hideTextUI()
inPrompt = false
end
})
end

-- Personal Stash
for _, v in pairs(sharedConfig.locations.stash) do
lib.zones.box({
coords = v,
size = vec3(2, 2, 2),
rotation = 0.0,
debug = config.polyDebug,
onEnter = function()
inStash = true
inPrompt = true
lib.showTextUI(Lang:t('info.stash_enter'))
uiPrompt('stash')
end,
onExit = function()
lib.hideTextUI()
inPrompt = false
inStash = false
end
})
end

-- Police Trash
for i = 1, #sharedConfig.locations.trash do
local v = sharedConfig.locations.trash[i]
Expand Down
1 change: 1 addition & 0 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ CreateThread(function()
SetBlipAsShortRange(blip, true)
SetBlipScale(blip, 0.8)
SetBlipColour(blip, 29)

BeginTextCommandSetBlipName('STRING')
AddTextComponentString(station.label)
EndTextCommandSetBlipName(blip)
Expand Down
15 changes: 11 additions & 4 deletions config/shared.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ return {
roadsign = {model = `prop_snow_sign_road_06g`, freeze = true},
tent = {model = `prop_gazebo_03`, freeze = true},
light = {model = `prop_worklight_03b`, freeze = true},
chair = {model = `prop_chair_08`, freeze = true},
chairs = {model = `prop_chair_pile_01`, freeze = true},
tabe = {model = `prop_table_03`, freeze = true},
monitor = {model = `des_tvsmash_root`, freeze = true},
},

locations = {
Expand Down Expand Up @@ -41,9 +45,12 @@ return {
evidence = { -- Not currently used, use ox_inventory evidence system
},
stations = {
{label = 'Police Station', coords = vec4(428.23, -984.28, 29.76, 3.5)},
{label = 'Prison', coords = vec4(1845.903, 2585.873, 45.672, 272.249)},
{label = 'Police Station Paleto', coords = vec4(-451.55, 6014.25, 31.716, 223.81)},
{label = 'Mission Row Police Station', coords = vec3(434.0, -983.0, 30.7)},
{label = 'Sandy Shores Police Station', coords = vec3(1853.4, 3684.5, 34.3)},
-- {label = 'Vinewood Police Station', coords = vec3(637.1, 1.6, 81.8)},
-- {label = 'Vespucci Police Station', coords = vec3(-1092.6, -808.1, 19.3)},
-- {label = 'Davis Police Station', coords = vec3(368.0, -1618.8, 29.3)},
-- {label = 'Paleto Bay Police Station', coords = vec3(-448.4, 6011.8, 31.7)},
},
},

Expand All @@ -59,4 +66,4 @@ return {
{fine = 500, maxSpeed = 180},
}
}
}
}

0 comments on commit 5c91544

Please sign in to comment.