From 9382128f2e501d4d8498691f29efc9493f6498b2 Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Tue, 8 Jan 2019 13:51:00 +0100 Subject: [PATCH] Proper RequestCollisionAtCoord arguments --- client/functions.lua | 3 ++- config.lua | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/functions.lua b/client/functions.lua index fab66592..274a1735 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -263,6 +263,7 @@ end ESX.Game.GetPedMugshot = function(ped) local mugshot = RegisterPedheadshot(ped) + while not IsPedheadshotReady(mugshot) do Citizen.Wait(0) end @@ -274,7 +275,7 @@ ESX.Game.Teleport = function(entity, coords, cb) RequestCollisionAtCoord(coords.x, coords.y, coords.z) while not HasCollisionLoadedAroundEntity(entity) do - RequestCollisionAtCoord(coords.x, coords.x, coords.x) + RequestCollisionAtCoord(coords.x, coords.y, coords.z) Citizen.Wait(0) end diff --git a/config.lua b/config.lua index 27e32bb9..b519ada4 100644 --- a/config.lua +++ b/config.lua @@ -1,5 +1,5 @@ Config = {} -Config.Locale = 'fr' +Config.Locale = 'en' Config.Accounts = { 'bank', 'black_money' } Config.AccountLabels = { bank = _U('bank'), black_money = _U('black_money') } @@ -7,7 +7,7 @@ Config.AccountLabels = { bank = _U('bank'), black_money = _U('black_money Config.EnableSocietyPayouts = false -- pay from the society account that the player is employed at? Requirement: esx_society Config.ShowDotAbovePlayer = false Config.DisableWantedLevel = true -Config.EnableHud = true -- enable the default hud? Display current job and accounts (black, bank & cash) +Config.EnableHud = false -- enable the default hud? Display current job and accounts (black, bank & cash) Config.PaycheckInterval = 7 * 60000 Config.MaxPlayers = GetConvarInt('sv_maxclients', 32)