From d3cd143a340e4f8b6fbffd4d2a4c2b297865a53b Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Mon, 2 Sep 2024 20:31:45 +0200 Subject: [PATCH] chore: various fixes --- .../[bpt_addons]/bpt_hunting/client/functions.lua | 4 ++-- .../[bpt_addons]/bpt_hunting/client/main.lua | 12 ++++++------ .../resources/[ox]/ox_inventory/data/items.lua | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/server-data/resources/[bpt_addons]/bpt_hunting/client/functions.lua b/server-data/resources/[bpt_addons]/bpt_hunting/client/functions.lua index 6790f1f5f..b5598ffbe 100644 --- a/server-data/resources/[bpt_addons]/bpt_hunting/client/functions.lua +++ b/server-data/resources/[bpt_addons]/bpt_hunting/client/functions.lua @@ -6,11 +6,11 @@ DrawText3D = function(x, y, z, text) if onScreen then SetTextScale(scale, scale) SetTextFont(4) - SetTextProportional(1) + SetTextProportional(true) SetTextColour(255, 255, 255, 215) SetTextOutline() SetTextEntry("STRING") - SetTextCentre(1) + SetTextCentre(true) AddTextComponentString(text) DrawText(_x, _y) local _ = (string.len(text)) / 650 diff --git a/server-data/resources/[bpt_addons]/bpt_hunting/client/main.lua b/server-data/resources/[bpt_addons]/bpt_hunting/client/main.lua index f26f47526..3ddc4bf72 100644 --- a/server-data/resources/[bpt_addons]/bpt_hunting/client/main.lua +++ b/server-data/resources/[bpt_addons]/bpt_hunting/client/main.lua @@ -1,11 +1,11 @@ ESX = exports["es_extended"]:getSharedObject() -local oPlayer, playerpos = false, false +local oPlayer = false CreateThread(function() while true do - oPlayer = PlayerPedId() - playerpos = GetEntityCoords(oPlayer) + OPlayer = PlayerPedId() + Playerpos = GetEntityCoords(oPlayer) Wait(500) end end) @@ -18,7 +18,7 @@ CreateThread(function() repeat success, ped = FindNextPed(handle) local pos = GetEntityCoords(ped) - local distance = GetDistanceBetweenCoords(pos.x, pos.y, pos.z, playerpos.x, playerpos.y, playerpos.z, true) + local distance = GetDistanceBetweenCoords(pos.x, pos.y, pos.z, Playerpos.x, Playerpos.y, Playerpos.z, true) if distance < 2 and CanSlaughterPed(ped) then DrawText3D(pos.x, pos.y, pos.z + 0.6, "[H] ~b~Skin Animal ~s~") while IsControlPressed(0, 30) do @@ -27,8 +27,8 @@ CreateThread(function() if IsControlJustPressed(1, 74) then if GetSelectedPedWeapon(PlayerPedId()) == GetHashKey("WEAPON_KNIFE") then local oldped = ped - SetEntityHeading(ped, GetHeadingFromVector_2d(pos.x - playerpos.x - playerpos.y) + 180) - SetEntityHeading(oPlayer, GetHeadingFromVector_2d(pos.x - playerpos.x, pos.y - playerpos.y)) + SetEntityHeading(ped, GetHeadingFromVector_2d(pos.x - Playerpos.x - Playerpos.y) + 180) + SetEntityHeading(OPlayer, GetHeadingFromVector_2d(pos.x - Playerpos.x, pos.y - Playerpos.y)) exports.rprogress:Custom({ Async = true, diff --git a/server-data/resources/[ox]/ox_inventory/data/items.lua b/server-data/resources/[ox]/ox_inventory/data/items.lua index 895bbd13b..80fed145a 100644 --- a/server-data/resources/[ox]/ox_inventory/data/items.lua +++ b/server-data/resources/[ox]/ox_inventory/data/items.lua @@ -18,7 +18,7 @@ return { label = "Burger", weight = 220, client = { - status = { hunger = 25000 }, + status = { hunger = 30000 }, anim = "eating", prop = "burger", usetime = 2500, @@ -291,7 +291,7 @@ return { ["radio"] = { label = "Radio", - weight = 1000, + weight = 300, stack = false, consume = 0, allowArmed = true,