Skip to content

Commit

Permalink
Merge branch 'oss' into 206-peugeot-but-also-image-for-news
Browse files Browse the repository at this point in the history
  • Loading branch information
Mcfloy authored Jun 5, 2023
2 parents 6e814b8 + 11a110a commit ef12ec1
Show file tree
Hide file tree
Showing 796 changed files with 9,748 additions and 8,712 deletions.
1 change: 1 addition & 0 deletions env.cfg-dist
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ set mysql_debug true
# Disable steam login for development usage
# This will allow you to connect to the server without having a steam account and use the rockstar license field instead
#set soz_disable_steam_credential true
#set soz_enable_test_auth true

# Mumble configuration
# Allow to use an external mumble server
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion resources/[default]/[gameplay]/chat/dist/ui.html

Large diffs are not rendered by default.

22 changes: 13 additions & 9 deletions resources/[default]/[system]/baseevents/vehiclechecker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,28 @@ Citizen.CreateThread(function()
isInVehicle = true
currentVehicle = GetVehiclePedIsUsing(ped)
currentSeat = GetPedVehicleSeat(ped)
local model = GetEntityModel(currentVehicle)
local name = GetDisplayNameFromVehicleModel()
local netId = VehToNet(currentVehicle)
TriggerEvent('baseevents:enteredVehicle', currentVehicle, currentSeat, GetDisplayNameFromVehicleModel(GetEntityModel(currentVehicle)), netId)
TriggerServerEvent('baseevents:enteredVehicle', currentVehicle, currentSeat, GetDisplayNameFromVehicleModel(GetEntityModel(currentVehicle)), netId)
TriggerEvent('baseevents:enteredVehicle', currentVehicle, currentSeat)
TriggerServerEvent('baseevents:enteredVehicle', netId, currentSeat)
end
elseif isInVehicle then
if not IsPedInAnyVehicle(ped, false) or IsPlayerDead(PlayerId()) then
-- bye, vehicle
local model = GetEntityModel(currentVehicle)
local name = GetDisplayNameFromVehicleModel()
local netId = VehToNet(currentVehicle)
TriggerEvent('baseevents:leftVehicle', currentVehicle, currentSeat, GetDisplayNameFromVehicleModel(GetEntityModel(currentVehicle)), netId)
TriggerServerEvent('baseevents:leftVehicle', currentVehicle, currentSeat, GetDisplayNameFromVehicleModel(GetEntityModel(currentVehicle)), netId)
TriggerEvent('baseevents:leftVehicle', currentVehicle, currentSeat)
TriggerServerEvent('baseevents:leftVehicle', netId, currentSeat)
isInVehicle = false
currentVehicle = 0
currentSeat = 0
end

local pedInSeat = GetPedInVehicleSeat(currentVehicle, currentSeat)

if pedInSeat ~= ped then
currentSeat = GetPedVehicleSeat(ped)
local netId = VehToNet(currentVehicle)
TriggerEvent('baseevents:changedVehicleSeat', currentVehicle, currentSeat)
TriggerServerEvent('baseevents:changedVehicleSeat', netId, currentSeat)
end
end
Citizen.Wait(50)
end
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fx_version 'cerulean'
game 'gta5'
this_is_a_map 'yes'

data_file 'DLC_ITYP_REQUEST' 'stream/soz_big_screenbenny.ytyp'
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
12 changes: 0 additions & 12 deletions resources/[mapping]/[mapping-prod]/lafitness/fxmanifest.lua

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
fx_version 'cerulean'
game 'gta5'
this_is_a_map 'yes'

files {
"interiorproxies.meta"
}


data_file 'INTERIOR_PROXY_ORDER_FILE' 'interiorproxies.meta'
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fx_version 'cerulean'
game 'gta5'
this_is_a_map 'yes'
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
6 changes: 2 additions & 4 deletions resources/[mapping]/[mapping-prod]/soz-lsmc/fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ this_is_a_map 'yes'


files {

"interiorproxies.meta"

"audio/lsmc_game.dat151.rel",
}

data_file 'INTERIOR_PROXY_ORDER_FILE' 'interiorproxies.meta'
data_file 'AUDIO_GAMEDATA' 'audio/lsmc_game.dat'
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
fx_version 'cerulean'
game 'gta5'
this_is_a_map 'yes'

files {

"interiorproxies.meta"
}

data_file 'INTERIOR_PROXY_ORDER_FILE' 'interiorproxies.meta'
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
fx_version 'cerulean'
game 'gta5'
this_is_a_map 'yes'

files {

"interiorproxies.meta"

}

data_file 'INTERIOR_PROXY_ORDER_FILE' 'interiorproxies.meta'
2 changes: 0 additions & 2 deletions resources/[mapping]/[mapping-prod]/soz-map-upw/fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ this_is_a_map 'yes'
files {
"audio/soz_upw_game.dat151.rel",
"audio/soz_upw_mix.dat15.rel",
"interiorproxies.meta"
}

data_file 'INTERIOR_PROXY_ORDER_FILE' 'interiorproxies.meta'
data_file 'AUDIO_GAMEDATA' 'audio/soz_upw_game.dat'
data_file 'AUDIO_DYNAMIXDATA' 'audio/soz_upw_mix.dat'
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
fx_version 'cerulean'
game 'gta5'
this_is_a_map 'yes'

files {
"interiorproxies.meta"
}

data_file 'INTERIOR_PROXY_ORDER_FILE' 'interiorproxies.meta'
16 changes: 11 additions & 5 deletions resources/[qb]/progressbar/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,17 +112,19 @@ function Process(action, start, tick, finish)
end
end)
else
TriggerEvent("hud:client:DrawNotification", "Une action est déjà en cours !", "error")
TriggerEvent("soz-core:client:notification:draw", "Une action est déjà en cours !", "error")
end
else
TriggerEvent("hud:client:DrawNotification", "Vous ne pouvez réaliser cette action !", "error")
TriggerEvent("soz-core:client:notification:draw", "Vous ne pouvez réaliser cette action !", "error")
end
end

function ActionStart()
runProgThread = true
if not Action.no_inv_busy then
LocalPlayer.state:set("inv_busy", true, true) -- Busy
exports["soz-core"]:SetPlayerState({
isInventoryBusy = true,
})
exports["soz-phone"]:setPhoneVisible(false)
TriggerEvent("inventory:client:closeInventory")
end
Expand Down Expand Up @@ -227,7 +229,9 @@ end
function Cancel()
isDoingAction = false
wasCancelled = true
LocalPlayer.state:set("inv_busy", false, true) -- Not Busy
exports["soz-core"]:SetPlayerState({
isInventoryBusy = false,
})
ActionCleanup()

SendNUIMessage({
Expand All @@ -238,7 +242,9 @@ end
function Finish()
isDoingAction = false
ActionCleanup()
LocalPlayer.state:set("inv_busy", false, true) -- Not Busy
exports["soz-core"]:SetPlayerState({
isInventoryBusy = false,
})
end

function ActionCleanup()
Expand Down
50 changes: 0 additions & 50 deletions resources/[qb]/qb-core/client/events.lua
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
-- Player load and unload handling
-- New method for checking if logged in across all scripts (optional)
-- if LocalPlayer.state['isLoggedIn'] then
RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function()
ShutdownLoadingScreenNui()
LocalPlayer.state:set('isLoggedIn', true, false)
if QBConfig.Server.pvp then
SetCanAttackFriendly(PlayerPedId(), true, false)
NetworkSetFriendlyFireOption(true)
end
SetPlayerHealthRechargeMultiplier(PlayerId(), 0)
end)

RegisterNetEvent('QBCore:Client:OnPlayerUnload', function()
LocalPlayer.state:set('isLoggedIn', false, false)
end)

RegisterNetEvent('QBCore:Client:PvpHasToggled', function(pvp_state)
SetCanAttackFriendly(PlayerPedId(), pvp_state, false)
NetworkSetFriendlyFireOption(pvp_state)
Expand Down Expand Up @@ -52,50 +46,6 @@ RegisterNetEvent('QBCore:Command:GoToMarker', function()
end
end)

-- Vehicle Commands

RegisterNetEvent('QBCore:Command:SpawnVehicle', function(vehName)
local ped = PlayerPedId()
local hash = GetHashKey(vehName)
if not IsModelInCdimage(hash) then
return
end
RequestModel(hash)
while not HasModelLoaded(hash) do
Wait(10)
end
local vehicle = CreateVehicle(hash, GetEntityCoords(ped), GetEntityHeading(ped), true, false)
TaskWarpPedIntoVehicle(ped, vehicle, -1)
SetModelAsNoLongerNeeded(hash)
TriggerEvent("vehiclekeys:client:SetOwner", QBCore.Functions.GetPlate(vehicle))
end)

RegisterNetEvent('QBCore:Command:VehicleVariation', function(livery)
local ped = PlayerPedId()
local veh = GetVehiclePedIsUsing(ped)
if veh ~= 0 then
SetVehicleLivery(veh, tonumber(livery))
end
end)

RegisterNetEvent('QBCore:Command:DeleteVehicle', function()
local ped = PlayerPedId()
local veh = GetVehiclePedIsUsing(ped)
if veh ~= 0 then
SetEntityAsMissionEntity(veh, true, true)
DeleteVehicle(veh)
else
local pcoords = GetEntityCoords(ped)
local vehicles = GetGamePool('CVehicle')
for k, v in pairs(vehicles) do
if #(pcoords - GetEntityCoords(v)) <= 5.0 then
SetEntityAsMissionEntity(v, true, true)
DeleteVehicle(v)
end
end
end
end)

-- Other stuff

RegisterNetEvent('QBCore:Client:SetDuty', function()
Expand Down
Loading

0 comments on commit ef12ec1

Please sign in to comment.