Skip to content

Commit

Permalink
Merge pull request #854 from bitpredator/dev
Browse files Browse the repository at this point in the history
 new update package
  • Loading branch information
bitpredator authored Oct 5, 2024
2 parents edd1c4e + 5897559 commit 2ffee79
Show file tree
Hide file tree
Showing 674 changed files with 58,288 additions and 2,010 deletions.
1,096 changes: 1,075 additions & 21 deletions server-data/[SQL]/es_extended.sql

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function GetShapeTestResultSync(shape)
local handle, hit, coords, normal, entity
repeat
handle, hit, coords, normal, entity = GetShapeTestResult(shape)
until handle ~= 1 or Wait()
until handle ~= 1 or Wait(Sleep)
return hit, coords, normal, entity
end

Expand All @@ -14,14 +14,14 @@ local zoom = Config.zoom
local playerPed

function StartDeathCam()
camera = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", 0, 0, 0, 0, 0, 0, GetGameplayCamFov(), 1)
camera = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", 0, 0, 0, 0, 0, 0, GetGameplayCamFov(), true, 1)
RenderScriptCams(true, true, 1000, true, false)

playerPed = PlayerPedId()
end

function EndDeathCam()
RenderScriptCams(0)
RenderScriptCams(false, false, 0, false, false)
camera = DestroyCam(camera)
end

Expand Down
1 change: 1 addition & 0 deletions server-data/resources/[bpt_addons]/bpt_crafting/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ Config = {
["marijuana"] = 5,
["bandage"] = 1,
["cottonforbandages"] = 2,
["marijuana_extract"] = 2,
},
},

Expand Down
4 changes: 2 additions & 2 deletions server-data/resources/[bpt_addons]/bpt_farmer/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ function DrawText3D(x, y, z, text, scale)

SetTextScale(scale, scale)
SetTextFont(4)
SetTextProportional(1)
SetTextProportional(true)
SetTextEntry("STRING")
SetTextCentre(1)
SetTextCentre(true)
SetTextColour(255, 255, 255, 255)
SetTextOutline()

Expand Down
49 changes: 2 additions & 47 deletions server-data/resources/[bpt_addons]/bpt_menu/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ local function getPersonalMenuCategory(id)
return personalMenuCategoriesById[id]
end

local animationCategory = addPersonalMenuCategory("animation", TranslateCap("animation_title"))
local plyPed

addPersonalMenuCategory("vehicle", TranslateCap("vehicle_title"), function()
Expand All @@ -97,11 +96,6 @@ addPersonalMenuCategory("admin", TranslateCap("admin_title"), function()
return adminGroups[PlayerVars.group] ~= nil
end)

for i = 1, #Config.Animations do
local animationCfg = Config.Animations[i]
animationCfg.menu = RageUI.CreateSubMenu(animationCategory.menu, animationCfg.name)
end

if Config.Framework == "esx" then
AddEventHandler("esx:onPlayerDeath", function()
PlayerVars.isDead = true
Expand Down Expand Up @@ -199,35 +193,6 @@ function DrawPersonalMenu()
end)
end

getPersonalMenuCategory("animation").drawer = function()
for i = 1, #Config.Animations do
local animationCfg = Config.Animations[i]
RageUI.Button(animationCfg.name, nil, { RightLabel = "→→→" }, true, nil, animationCfg.menu)
end
end

function DrawAnimationsCategory(animationCfg)
ruiDrawContent(drawContentOptions, function()
for i = 1, #animationCfg.items do
local animItemCfg = animationCfg.items[i]

RageUI.Button(animItemCfg.name, nil, nil, true, function(Hovered, Active, Selected)
if not Selected then
return
end

if animItemCfg.type == "anim" then
startAnim(animItemCfg.animDict, animItemCfg.animName)
elseif animItemCfg.type == "scenario" then
TaskStartScenarioInPlace(plyPed, animItemCfg.scenarioName, 0, false)
elseif animItemCfg.type == "attitude" then
startAttitude(animItemCfg.animSet)
end
end)
end
end)
end

getPersonalMenuCategory("vehicle").drawer = function()
RageUI.Button(TranslateCap("vehicle_engine_button"), nil, nil, true, function(Hovered, Active, Selected)
if not Selected then
Expand Down Expand Up @@ -497,15 +462,6 @@ CreateThread(function()
end
end

for i = 1, #Config.Animations do
local animationCfg = Config.Animations[i]

if ruiVisible(animationCfg.menu) then
DrawAnimationsCategory(animationCfg)
goto continue
end
end

::continue::
Wait(0)
end
Expand All @@ -524,11 +480,10 @@ end, false)

RegisterCommand("-stoptask", function() end, false)

RegisterKeyMapping("+stoptask", "Annulez animation", "KEYBOARD", Config.Controls.StopTasks.keyboard)
TriggerEvent("chat:removeSuggestion", "/+stoptask")
TriggerEvent("chat:removeSuggestion", "/-stoptask")

function tpMarker()
function TpMarker()
local waypointHandle = GetFirstBlipInfoId(8)

if not DoesBlipExist(waypointHandle) then
Expand Down Expand Up @@ -571,7 +526,7 @@ CreateThread(function()
return
end

tpMarker()
TpMarker()
end)
end

Expand Down
Loading

0 comments on commit 2ffee79

Please sign in to comment.