mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-18 14:26:03 +01:00
Compare commits
18 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f09e34b1b5 | ||
|
|
1146639d6f | ||
|
|
a9ac2e8897 | ||
|
|
1a1960f5a8 | ||
|
|
996b135973 | ||
|
|
9337238832 | ||
|
|
ee049a953c | ||
|
|
adfe3e8e08 | ||
|
|
71c9c99db7 | ||
|
|
dd66083f45 | ||
|
|
9ddd6422bd | ||
|
|
7d24c274cd | ||
|
|
3911824fc6 | ||
|
|
9729d2fef1 | ||
|
|
3cb4005889 | ||
|
|
bf759ebaf8 | ||
|
|
3d0eb3df65 | ||
|
|
fe09d0f773 |
12
.github/workflows/notify-discord.yml
vendored
12
.github/workflows/notify-discord.yml
vendored
@@ -8,10 +8,10 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
notify:
|
notify:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Discord Commits
|
- name: Send commit payload to Discord Bot
|
||||||
uses: Sniddl/discord-commits@v1.6
|
run: |
|
||||||
with:
|
curl -X POST http://${{ secrets.DISCORDBOT }}:3000/github-commits \
|
||||||
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
-H "Content-Type: application/json" \
|
||||||
template: "avatar-with-link"
|
-d '${{ toJson(github.event) }}'
|
||||||
include-extras: true
|
|
||||||
@@ -376,7 +376,10 @@ for script, data in pairs(invWeightTable) do
|
|||||||
if checkExists(script) then
|
if checkExists(script) then
|
||||||
if script == Exports.QBInv and GetResourceState(Exports.JPRInv):find("start") then goto skip end
|
if script == Exports.QBInv and GetResourceState(Exports.JPRInv):find("start") then goto skip end
|
||||||
|
|
||||||
while GetResourceState(script) ~= "started" do Wait(100) print("Waiting for script start") end
|
while GetResourceState(script) ~= "started" and GetResourceState(script) ~= "stopped" do
|
||||||
|
Wait(100)
|
||||||
|
print("Waiting for script start")
|
||||||
|
end
|
||||||
local attempts = data.fallback or { data }
|
local attempts = data.fallback or { data }
|
||||||
local lookup, used, err
|
local lookup, used, err
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
name "Jim_Bridge"
|
name "Jim_Bridge"
|
||||||
author "Jimathy"
|
author "Jimathy"
|
||||||
version "2.0.21"
|
version "2.0.22"
|
||||||
description "Framework Bridge By Jimathy"
|
description "Framework Bridge By Jimathy"
|
||||||
fx_version "cerulean"
|
fx_version "cerulean"
|
||||||
rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships.'
|
rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships.'
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ function onResourceStart(func, thisScript)
|
|||||||
debugPrint("^6Bridge^7: ^2Shared Load Detected^7.")
|
debugPrint("^6Bridge^7: ^2Shared Load Detected^7.")
|
||||||
hasPrinted = true
|
hasPrinted = true
|
||||||
end
|
end
|
||||||
func()
|
func(resourceName)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
@@ -136,7 +136,7 @@ function onResourceStop(func, thisScript)
|
|||||||
debugPrint("^6Bridge^7: ^2Registering ^3onResourceStop^7()")
|
debugPrint("^6Bridge^7: ^2Registering ^3onResourceStop^7()")
|
||||||
AddEventHandler('onResourceStop', function(resourceName)
|
AddEventHandler('onResourceStop', function(resourceName)
|
||||||
if getScript() == resourceName and (thisScript or true) then
|
if getScript() == resourceName and (thisScript or true) then
|
||||||
func()
|
func(resourceName)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ function drawText(image, input, style, oxStyleTable)
|
|||||||
keybind = nil,
|
keybind = nil,
|
||||||
icon = (image and radarTable[image] or image) or nil,
|
icon = (image and radarTable[image] or image) or nil,
|
||||||
iconColor = '#3B82F6',
|
iconColor = '#3B82F6',
|
||||||
position = 'center-left'
|
position = 'left-center'
|
||||||
})
|
})
|
||||||
|
|
||||||
elseif Config.System.drawText == "gta" then
|
elseif Config.System.drawText == "gta" then
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ function getPlayerInv(src)
|
|||||||
if src then
|
if src then
|
||||||
grabInv = exports[OrigenInv]:getInventory(src)
|
grabInv = exports[OrigenInv]:getInventory(src)
|
||||||
else
|
else
|
||||||
grabInv = exports[OrigenInv]:getInventory()
|
grabInv = exports[OrigenInv]:GetInventory()
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif isStarted(CoreInv) then
|
elseif isStarted(CoreInv) then
|
||||||
@@ -232,6 +232,7 @@ function invImg(item)
|
|||||||
|
|
||||||
elseif isStarted(PSInv) then
|
elseif isStarted(PSInv) then
|
||||||
imgLink = "nui://"..PSInv.."/html/images/"..(Items[item].image or "")
|
imgLink = "nui://"..PSInv.."/html/images/"..(Items[item].image or "")
|
||||||
|
|
||||||
elseif isStarted(TgiannInv) then
|
elseif isStarted(TgiannInv) then
|
||||||
imgLink = "nui://inventory_images/images/"..(Items[item].image or "")
|
imgLink = "nui://inventory_images/images/"..(Items[item].image or "")
|
||||||
|
|
||||||
|
|||||||
@@ -133,16 +133,19 @@ function makeEntityBlip(data)
|
|||||||
AddTextComponentString(tostring(data.name))
|
AddTextComponentString(tostring(data.name))
|
||||||
EndTextCommandSetBlipName(blip)
|
EndTextCommandSetBlipName(blip)
|
||||||
-- Handle preview image if certain resources are running
|
-- Handle preview image if certain resources are running
|
||||||
if isStarted("fs_smallresources") or isStarted("blip-info") or isStarted("blipinfo") then
|
if isStarted("jim-blipcontroller") then
|
||||||
if data.preview then
|
if data.preview then
|
||||||
local txname = string.gsub(tostring(data.name..'preview'), "[ ()~]", "")
|
local txname = string.gsub(tostring(data.name..'preview'..string.gsub(data.coords.z, "%.", "")), "[ ()~]", "")
|
||||||
if data.preview:find("http") or data.preview:find("nui") then
|
if data.preview:find("http") or data.preview:find("nui") then
|
||||||
createDui(txname, data.preview, vec2(512, 256), scriptTxd)
|
createDui(txname, data.preview, vec2(512, 256), scriptTxd)
|
||||||
else
|
else
|
||||||
CreateRuntimeTextureFromImage(scriptTxd, txname, data.preview)
|
CreateRuntimeTextureFromImage(scriptTxd, txname, data.preview)
|
||||||
end
|
end
|
||||||
exports["fs_smallresources"]:SetBlipInfoImage(blip, getScript()..'previewTxd', txname)
|
exports["jim-blipcontroller"]:ShowBlipInfo(blip, {
|
||||||
exports["fs_smallresources"]:SetBlipInfoTitle(blip, data.name, false)
|
title = data.name,
|
||||||
|
dict = getScript()..'scriptTxd',
|
||||||
|
tex = txname,
|
||||||
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ end
|
|||||||
-- ```lua
|
-- ```lua
|
||||||
-- local ped = makePed(pedData, pedCoords, true, false, nil, {'animDict', 'animName'}, true)
|
-- local ped = makePed(pedData, pedCoords, true, false, nil, {'animDict', 'animName'}, true)
|
||||||
-- ```
|
-- ```
|
||||||
function makePed(data, coords, freeze, collision, scenario, anim, synced)
|
function makePed(data, coords, freeze, collision, scenario, anim, synced, fade)
|
||||||
local ped = nil
|
local ped = nil
|
||||||
local model = nil
|
local model = nil
|
||||||
if type(data) == "table" then
|
if type(data) == "table" then
|
||||||
@@ -142,10 +142,11 @@ function makePed(data, coords, freeze, collision, scenario, anim, synced)
|
|||||||
end
|
end
|
||||||
unloadModel(model)
|
unloadModel(model)
|
||||||
Peds[keyGen()..keyGen()] = ped
|
Peds[keyGen()..keyGen()] = ped
|
||||||
|
if fade ~= false then
|
||||||
CreateThread(function()
|
CreateThread(function()
|
||||||
fadeInEnt(ped)
|
fadeInEnt(ped)
|
||||||
end)
|
end)
|
||||||
|
end
|
||||||
return ped
|
return ped
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ local Props = {}
|
|||||||
--- }
|
--- }
|
||||||
--- local prop = makeProp(propData, true, false)
|
--- local prop = makeProp(propData, true, false)
|
||||||
--- ```
|
--- ```
|
||||||
function makeProp(data, freeze, synced)
|
function makeProp(data, freeze, synced, fade)
|
||||||
loadModel(data.prop)
|
loadModel(data.prop)
|
||||||
local prop = CreateObject(data.prop, data.coords.x, data.coords.y, data.coords.z-1.03, synced and synced or false, synced and synced or false, false)
|
local prop = CreateObject(data.prop, data.coords.x, data.coords.y, data.coords.z-1.03, synced and synced or false, synced and synced or false, false)
|
||||||
SetEntityAlpha(veh, 0, false)
|
SetEntityAlpha(veh, 0, false)
|
||||||
@@ -30,9 +30,11 @@ function makeProp(data, freeze, synced)
|
|||||||
debugPrint("^6Bridge^7: ^1Prop ^2Created^7: '^6"..prop.."^7' | ^2Hash^7: ^7'^6"..data.prop.."^7' | ^2Coord^7: "..formatCoord(data.coords))
|
debugPrint("^6Bridge^7: ^1Prop ^2Created^7: '^6"..prop.."^7' | ^2Hash^7: ^7'^6"..data.prop.."^7' | ^2Coord^7: "..formatCoord(data.coords))
|
||||||
SetModelAsNoLongerNeeded(data.prop)
|
SetModelAsNoLongerNeeded(data.prop)
|
||||||
Props[keyGen()..keyGen()] = prop
|
Props[keyGen()..keyGen()] = prop
|
||||||
CreateThread(function()
|
if fade ~= false then
|
||||||
fadeInEnt(prop)
|
CreateThread(function()
|
||||||
end)
|
fadeInEnt(prop)
|
||||||
|
end)
|
||||||
|
end
|
||||||
return prop
|
return prop
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -13,9 +13,9 @@ local Vehicles = {}
|
|||||||
--- ```lua
|
--- ```lua
|
||||||
--- local vehicle = makeVeh('adder', vector4(123.4, 567.8, 90.1, 180.0))
|
--- local vehicle = makeVeh('adder', vector4(123.4, 567.8, 90.1, 180.0))
|
||||||
--- ```
|
--- ```
|
||||||
function makeVeh(model, coords)
|
function makeVeh(model, coords, synced, fade)
|
||||||
loadModel(model)
|
loadModel(model)
|
||||||
local veh = CreateVehicle(model, coords.x, coords.y, coords.z, coords.w, true, false)
|
local veh = CreateVehicle(model, coords.x, coords.y, coords.z, coords.w, synced ~= false, false)
|
||||||
SetVehicleHasBeenOwnedByPlayer(veh, true)
|
SetVehicleHasBeenOwnedByPlayer(veh, true)
|
||||||
if gameName ~= "rdr3" then
|
if gameName ~= "rdr3" then
|
||||||
SetEntityAlpha(veh, 0, false)
|
SetEntityAlpha(veh, 0, false)
|
||||||
@@ -31,9 +31,11 @@ function makeVeh(model, coords)
|
|||||||
debugPrint("^6Bridge^7: ^1Veh ^2Created^7: '^6"..veh.."^7' | ^2Hash^7: ^7'^6"..model.."^7' | ^2Coord^7: "..formatCoord(coords))
|
debugPrint("^6Bridge^7: ^1Veh ^2Created^7: '^6"..veh.."^7' | ^2Hash^7: ^7'^6"..model.."^7' | ^2Coord^7: "..formatCoord(coords))
|
||||||
unloadModel(model)
|
unloadModel(model)
|
||||||
Vehicles[#Vehicles + 1] = veh
|
Vehicles[#Vehicles + 1] = veh
|
||||||
CreateThread(function()
|
if fade ~= false then
|
||||||
fadeInEnt(veh)
|
CreateThread(function()
|
||||||
end)
|
fadeInEnt(veh)
|
||||||
|
end)
|
||||||
|
end
|
||||||
return veh
|
return veh
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -56,7 +58,7 @@ function makeDistVehicle(data, radius, onEnter, onExit)
|
|||||||
coords = vec3(data.coords.x, data.coords.y, data.coords.z),
|
coords = vec3(data.coords.x, data.coords.y, data.coords.z),
|
||||||
radius = radius,
|
radius = radius,
|
||||||
onEnter = function()
|
onEnter = function()
|
||||||
vehicle = makeVeh(data.model, data.coords)
|
vehicle = makeVeh(data.model, data.coords, false)
|
||||||
if onEnter then
|
if onEnter then
|
||||||
debugPrint("^6Bridge^7: ^4makeDistVehicle ^3onEnter^7() ^2running^7")
|
debugPrint("^6Bridge^7: ^4makeDistVehicle ^3onEnter^7() ^2running^7")
|
||||||
onEnter(vehicle)
|
onEnter(vehicle)
|
||||||
|
|||||||
@@ -119,6 +119,27 @@ function progressBar(data)
|
|||||||
result = false
|
result = false
|
||||||
end, data.icon)
|
end, data.icon)
|
||||||
|
|
||||||
|
elseif Config.System.ProgressBar == "qs" then -- documentation left intact based on qs interface
|
||||||
|
local qs_success = exports['qs-interface']:ProgressBar({
|
||||||
|
duration = debugMode and 1000 or data.time, -- Duration of the progress bar (in milliseconds)
|
||||||
|
label = data.label, -- Text that will appear on the progress bar
|
||||||
|
position = 'bottom', -- Position of the progress bar on the screen (e.g., 'top', 'bottom', 'center')
|
||||||
|
useWhileDead = data.dead or false, -- Whether the progress bar shows when the player is dead (true/false)
|
||||||
|
canCancel = data.cancel or true, -- Whether the player can cancel the progress (true/false)
|
||||||
|
disable = data.disableMovement or false, -- Whether to disable player controls during the progress (true/false)
|
||||||
|
anim = { -- Animation to be played while the progress is happening
|
||||||
|
dict = data.dict,
|
||||||
|
clip = data.anim,
|
||||||
|
flag = data.flag or 32 -- Optional animation flags
|
||||||
|
},
|
||||||
|
prop = nil -- Optional prop to show alongside the progress bar (can be nil)
|
||||||
|
})
|
||||||
|
if qs_success then
|
||||||
|
result = true
|
||||||
|
else
|
||||||
|
result = false
|
||||||
|
end
|
||||||
|
|
||||||
elseif Config.System.ProgressBar == "esx" then
|
elseif Config.System.ProgressBar == "esx" then
|
||||||
ESX.Progressbar(data.label, debugMode and 1000 or data.time, {
|
ESX.Progressbar(data.label, debugMode and 1000 or data.time, {
|
||||||
FreezePlayer = true,
|
FreezePlayer = true,
|
||||||
|
|||||||
@@ -44,6 +44,12 @@ function triggerNotify(title, message, type, src)
|
|||||||
else
|
else
|
||||||
TriggerClientEvent("QBCore:Notify", src, message, type)
|
TriggerClientEvent("QBCore:Notify", src, message, type)
|
||||||
end
|
end
|
||||||
|
elseif Config.System.Notify == "qs" then
|
||||||
|
if not src then
|
||||||
|
exports['qs-interface']:AddNotify(message, title, 6000)
|
||||||
|
else
|
||||||
|
TriggerClientEvent('interface:notification', src, message, title, 6000)
|
||||||
|
end
|
||||||
elseif Config.System.Notify == "ox" then
|
elseif Config.System.Notify == "ox" then
|
||||||
if not src then
|
if not src then
|
||||||
TriggerEvent('ox_lib:notify', { title = title, description = message, type = type or "success" })
|
TriggerEvent('ox_lib:notify', { title = title, description = message, type = type or "success" })
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ function sendPhoneInvoice(data)
|
|||||||
end
|
end
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name = "gks-phone",
|
name = "gksphone",
|
||||||
send = function(mailData)
|
send = function(mailData)
|
||||||
-- Defensive check for required fields
|
-- Defensive check for required fields
|
||||||
local required = { "billedCitizenid", "amount", "job", "name", "billerCitizenid", "label" }
|
local required = { "billedCitizenid", "amount", "job", "name", "billerCitizenid", "label" }
|
||||||
@@ -197,7 +197,6 @@ function sendPhoneInvoice(data)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
-- Check each phone system in order and use the first active one.
|
-- Check each phone system in order and use the first active one.
|
||||||
for _, phone in ipairs(phoneSystems) do
|
for _, phone in ipairs(phoneSystems) do
|
||||||
if isStarted(phone.name) then
|
if isStarted(phone.name) then
|
||||||
|
|||||||
@@ -44,19 +44,34 @@ function createPoly(data)
|
|||||||
local Location = nil
|
local Location = nil
|
||||||
if isStarted(OXLibExport) then
|
if isStarted(OXLibExport) then
|
||||||
debugPrint("^6Bridge^7: ^2Creating new poly with ^7'^4"..OXLibExport.."^7': "..data.name)
|
debugPrint("^6Bridge^7: ^2Creating new poly with ^7'^4"..OXLibExport.."^7': "..data.name)
|
||||||
-- Convert 2D points to 3D with a fixed Z coordinate (e.g., 12.0)
|
|
||||||
|
data.minZ = data.minZ or 12.0
|
||||||
|
data.maxZ = data.maxZ or 1000.0
|
||||||
|
data.thickness = ((data.maxZ / 2) - (data.minZ / 2)) * 2
|
||||||
|
|
||||||
|
local mid = data.maxZ - ((data.maxZ / 2) - (data.minZ / 2))
|
||||||
for i = 1, #data.points do
|
for i = 1, #data.points do
|
||||||
data.points[i] = vec3(data.points[i].x, data.points[i].y, 12.0)
|
data.points[i] = vec3(data.points[i].x, data.points[i].y, mid)
|
||||||
end
|
end
|
||||||
data.thickness = 1000 -- Set a default thickness value
|
|
||||||
Location = lib.zones.poly(data)
|
Location = lib.zones.poly(data)
|
||||||
|
|
||||||
elseif isStarted("PolyZone") then
|
elseif isStarted("PolyZone") then
|
||||||
debugPrint("^6Bridge^7: ^2Creating new poly with ^7'^4PolyZone^7': "..data.name)
|
debugPrint("^6Bridge^7: ^2Creating new poly with ^7'^4PolyZone^7': "..data.name)
|
||||||
Location = PolyZone:Create(data.points, { name = data.name, debugPoly = data.debug })
|
Location = PolyZone:Create(data.points, {
|
||||||
|
name = data.name,
|
||||||
|
minZ = data.minZ or nil,
|
||||||
|
maxZ = data.maxZ or nil,
|
||||||
|
debugPoly = data.debug
|
||||||
|
})
|
||||||
Location:onPlayerInOut(function(isPointInside)
|
Location:onPlayerInOut(function(isPointInside)
|
||||||
if isPointInside then data.onEnter() else data.onExit() end
|
if isPointInside then
|
||||||
|
data.onEnter()
|
||||||
|
else
|
||||||
|
data.onExit()
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
else
|
else
|
||||||
print("^4ERROR^7: ^2No PolyZone creation script detected ^7- ^2Check ^3exports^1.^2lua^7")
|
print("^4ERROR^7: ^2No PolyZone creation script detected ^7- ^2Check ^3exports^1.^2lua^7")
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -261,6 +261,6 @@ function registerShop(name, label, items, society)
|
|||||||
if shopResource ~= "" then
|
if shopResource ~= "" then
|
||||||
debugPrint("^6Bridge^7: ^2Registering ^5"..shopResource.." ^3Store^7:", name, "^4Label^7: "..label)
|
debugPrint("^6Bridge^7: ^2Registering ^5"..shopResource.." ^3Store^7:", name, "^4Label^7: "..label)
|
||||||
else
|
else
|
||||||
debugPrint("^1ERROR^7: ^1Couldn't find supported inventory to register shop^7:", name)
|
-- debugPrint("^1ERROR^7: ^1Couldn't find supported inventory to register shop^7:", name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -469,7 +469,7 @@ function stashRemoveItem(stashItems, stashName, items)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
exports[CodeMInv]:UpdateStash(stashName[1], stashItems)
|
exports[CodeMInv]:UpdateStash(stashName[1], stashItems)
|
||||||
debugPrint("^6Bridge^7: ^3saveStash^7: ^2Saving ^3CodeM^2 stash ^7'^6"..stashName.."^7'")
|
debugPrint("^6Bridge^7: ^3saveStash^7: ^2Saving ^3CodeM^2 stash ^7'^6"..stashName[1].."^7'")
|
||||||
|
|
||||||
elseif isStarted(OrigenInv) then
|
elseif isStarted(OrigenInv) then
|
||||||
for k, v in pairs(items) do
|
for k, v in pairs(items) do
|
||||||
|
|||||||
@@ -158,19 +158,25 @@ function createBoxTarget(data, opts, dist)
|
|||||||
icon = opts[i].icon,
|
icon = opts[i].icon,
|
||||||
label = opts[i].label,
|
label = opts[i].label,
|
||||||
items = opts[i].item or nil,
|
items = opts[i].item or nil,
|
||||||
groups = opts[i].job or opts[i].gang,
|
groups = opts[i].groups or opts[i].job or opts[i].gang,
|
||||||
onSelect = opts[i].onSelect or opts[i].action,
|
onSelect = opts[i].onSelect or opts[i].action,
|
||||||
distance = dist,
|
distance = dist,
|
||||||
canInteract = opts[i].canInteract or nil,
|
canInteract = opts[i].canInteract or nil,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
if not data[5].useZ then
|
|
||||||
local z = data[2].z + math.abs(data[5].maxZ - data[5].minZ) / 2
|
data[5].maxZ = data[5].maxZ or (data[2].z + 0.80)
|
||||||
data[2] = vec3(data[2].x, data[2].y, z)
|
data[5].minZ = data[5].minZ or data[2].z - 1.05
|
||||||
end
|
local thickness = ((data[5].maxZ / 2) - (data[5].minZ / 2)) * 2
|
||||||
|
local mid = data[5].maxZ - ((data[5].maxZ / 2) - (data[5].minZ / 2))
|
||||||
|
|
||||||
|
--if not data[5].useZ then
|
||||||
|
-- local z = data[2].z + math.abs(data[5].maxZ - data[5].minZ) / 2
|
||||||
|
data[2] = vec3(data[2].x, data[2].y, mid) -- force the coord to middle of the minZ and maxZ
|
||||||
|
--end
|
||||||
local target = exports[OXTargetExport]:addBoxZone({
|
local target = exports[OXTargetExport]:addBoxZone({
|
||||||
coords = data[2],
|
coords = data[2],
|
||||||
size = vec3(data[4], data[3], (data[5].useZ or not data[5].maxZ) and data[2].z or math.abs(data[5].maxZ - data[5].minZ)),
|
size = vec3(data[4], data[3], thickness), -- size uses the math to determine how high it needs to be
|
||||||
rotation = data[5].heading,
|
rotation = data[5].heading,
|
||||||
debug = data[5].debugPoly,
|
debug = data[5].debugPoly,
|
||||||
options = options
|
options = options
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ function gtaSkillCheck()
|
|||||||
DrawRect(x - width / 2 + (highlightStart + highlightSize / 2) * width, y, highlightSize * width, height+0.001, 228, 52, 52, 255)
|
DrawRect(x - width / 2 + (highlightStart + highlightSize / 2) * width, y, highlightSize * width, height+0.001, 228, 52, 52, 255)
|
||||||
DrawRect(x - width / 2 + cursorPos * width, y, 0.002, height + 0.01, 255, 255, 255, 255)
|
DrawRect(x - width / 2 + cursorPos * width, y, 0.002, height + 0.01, 255, 255, 255, 255)
|
||||||
|
|
||||||
drawSuccessText(x, y, "Failed", 228, 52, 52)
|
drawGTASuccessText(x, y, "Failed", 228, 52, 52)
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|||||||
23
version.txt
23
version.txt
@@ -1,14 +1,15 @@
|
|||||||
2.0.21
|
2.0.22
|
||||||
|
|
||||||
- Fix toggleDuty() for ESX users
|
- Support for qs-interface
|
||||||
- Rename metadata handler functions
|
- Fix polyzone minZ + maxZ handling
|
||||||
- Add useToolDegrade() to force limited uses for items
|
- Fix ox_target zone location to match qb-target
|
||||||
- Make breakTool() smarter
|
- Fix "Waiting for script start" loop bug
|
||||||
- Fix getPlayer() not checking if player data exists yet on qbcore
|
- Add condition for fading in entities
|
||||||
- Fix inbuilt gta progressbar error when stopping animations
|
- Fix typo breaking scripts on gta skillbar fail
|
||||||
- lation_ui support fixes
|
- Fix typo for gksphone invoice event
|
||||||
- Add fade in animations for created entities
|
- Fix latio_ui TextUI placement
|
||||||
- Fix waitForSharedLoad() not announcing when an error occurs
|
- Remove registerShop debug message
|
||||||
- Incrase authToken timeout from 5 seconds to 1 minute
|
- Fix typo in print when removing codem stash item
|
||||||
|
- Fix function typo from origen inv documenation
|
||||||
|
|
||||||
https://github.com/jimathy/jim_bridge
|
https://github.com/jimathy/jim_bridge
|
||||||
Reference in New Issue
Block a user