From aae2bd5021b58794715352bac7443aefe890fd4b Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Sat, 18 Oct 2025 12:16:05 +0100 Subject: [PATCH 1/3] Fix debugMode never being set after last change --- starter.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/starter.lua b/starter.lua index bc83dca..930ff9d 100644 --- a/starter.lua +++ b/starter.lua @@ -77,6 +77,7 @@ end -- [[ Server.Cfg Convar Check ]]-- -- Check server convars for hard set defaults, otherwise it uses per script configurations if Config and Config.System then + debugMode = Config.System.Debug if Config.System.Debug then if GetConvar("jim_DisableDebug", "false") == "true" then debugMode = false @@ -84,10 +85,7 @@ if Config and Config.System then if GetConvar("jim_DisableEventDebug", "false") == "true" then Config.System.EventDebug = false end - else - debugMode = Config.System.Debug end - Config.System.Menu = GetConvar("jim_menuScript", Config.System.Menu) Config.System.Notify = GetConvar("jim_notifyScript", Config.System.Notify or "gta") Config.System.ProgressBar = GetConvar("jim_progressBarScript", Config.System.ProgressBar or "gta") From dffed24fb33584b1d9a6cc92f982203d612787c0 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Sat, 18 Oct 2025 23:12:38 +0100 Subject: [PATCH 2/3] Add callback to get society balance in client side --- shared/societybank.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/shared/societybank.lua b/shared/societybank.lua index 3c8e5e8..f2cd2fc 100644 --- a/shared/societybank.lua +++ b/shared/societybank.lua @@ -263,4 +263,14 @@ function fundSociety(society, amount) end print("^1Error^7: ^3FundSociety^7: ^2No supported banking script found") +end + +if isServer() then + createCallback(getScript()..":server:getAccount", function(source, society) + if society then + local getMoney = getSocietyAccount(society) + return getMoney + end + return 0 + end) end \ No newline at end of file From 54f96f7e774c5b0b23c418fc8b615fb4ed56fde2 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Mon, 20 Oct 2025 20:10:02 +0100 Subject: [PATCH 3/3] When using `lookEnt()` also face players head --- shared/helpers.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shared/helpers.lua b/shared/helpers.lua index 42e77c2..5d5d603 100644 --- a/shared/helpers.lua +++ b/shared/helpers.lua @@ -638,6 +638,8 @@ function lookEnt(entity) debugPrint("^6Bridge^7: ^2Turning Player to^7: '^6"..formatCoord(entity).."^7'") Wait(1500) end + -- Make players head face the coord for 5 seconds + TaskLookAtCoord(ped, entity.x, entity.y, entity.z, 5000, 1, 1) else if DoesEntityExist(entity) then local entCoords = GetEntityCoords(entity) @@ -646,6 +648,9 @@ function lookEnt(entity) debugPrint("^6Bridge^7: ^2Turning Player to^7: '^6"..entity.."^7' - '"..formatCoord(entCoords).."^7'") Wait(1500) end + + -- Make players head face the coord for 5 seconds + TaskLookAtEntity(ped, entity, 5000, 1, 1) end end end