Skip to content

Commit

Permalink
chore: various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Sep 2, 2024
1 parent 00d87e8 commit d3cd143
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions server-data/resources/[bpt_addons]/bpt_hunting/client/main.lua
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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
Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions server-data/resources/[ox]/ox_inventory/data/items.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ return {
label = "Burger",
weight = 220,
client = {
status = { hunger = 25000 },
status = { hunger = 30000 },
anim = "eating",
prop = "burger",
usetime = 2500,
Expand Down Expand Up @@ -291,7 +291,7 @@ return {

["radio"] = {
label = "Radio",
weight = 1000,
weight = 300,
stack = false,
consume = 0,
allowArmed = true,
Expand Down

0 comments on commit d3cd143

Please sign in to comment.