mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
chore: adjust links
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
local commands = {}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@class OxCommandParams
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
if cache.game == 'redm' then return end
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@class Array<T> : OxClass, { [number]: T }
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
local pendingCallbacks = {}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
local pendingCallbacks = {}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@diagnostic disable: invisible
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
lib.cron = {}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
--- Call on frame to disable all stored keys.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@class DuiProperties
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@param coords vector3 The coords to check from.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@param coords vector3 The coords to check from.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@param coords vector3 The coords to check from.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@param coords vector3 The coords to check from.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@param coords vector3 The coords to check from.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@param path string
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@param coords vector3 The coords to check from.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@param coords vector3 The coords to check from.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@param coords vector3 The coords to check from.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@param coords vector3 The coords to check from.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@param coords vector3 The coords to check from.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
local glm_sincos = require 'glm'.sincos --[[@as fun(n: number): number, number]]
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2019-2021 Michael Afrin
|
||||
Copyright © 2019-2021 Michael Afrin
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@type { [string]: string }
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
local service = GetConvar('ox:logger', 'datadog')
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@diagnostic disable: param-type-mismatch
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@class oxmath : mathlib
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@alias AnimationFlags number
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@class PointProperties
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@enum PrintLevel
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
lib.raycast = {}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---Load an animation dictionary. When called from a thread, it will yield until it has loaded.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---Load an animation clipset. When called from a thread, it will yield until it has loaded.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---Loads an audio bank.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---Load a model. When called from a thread, it will yield until it has loaded.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---Load a named particle effect. When called from a thread, it will yield until it has loaded.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---Load a scaleform movie. When called from a thread, it will yield until it has loaded.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---Load a texture dictionary. When called from a thread, it will yield until it has loaded.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@alias WeaponResourceFlags
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
local loaded = {}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@class renderTargetTable
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@async
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@class oxstring : stringlib
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
-- Add additional functions to the standard table library
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@class TimerPrivateProps
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---Triggers an event for the given playerIds, sending additional parameters as arguments.\
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---Yields the current thread until a non-nil value is returned by the function.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
local glm = require 'glm'
|
||||
|
||||
2
init.lua
2
init.lua
@@ -4,7 +4,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
if not _VERSION:find('5.4') then
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
local function allowAce(allow)
|
||||
|
||||
2
resource/cache/client.lua
vendored
2
resource/cache/client.lua
vendored
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
local cache = _ENV.cache
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
local registeredCallbacks = {}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
local _registerCommand = RegisterCommand
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@type promise?
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@param value string
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
local contextMenus = {}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
local input
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@alias IconProp 'fas' | 'far' | 'fal' | 'fat' | 'fad' | 'fab' | 'fak' | 'fass'
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@type { [string]: MenuProps }
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@alias NotificationPosition 'top' | 'top-right' | 'top-left' | 'bottom' | 'bottom-right' | 'bottom-left' | 'center-right' | 'center-left'
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
local progress
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@class RadialItem
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@type promise?
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@class TextUIOptions
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
if GetConvarInt('ox:txAdminNotifications', 0) == 0 then return end
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
local settings = require 'resource.settings'
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
function lib.getLocaleKey() return GetConvar('ox:locale', 'en') end
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
if cache.game == 'redm' then return end
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
---@param vehicle number
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
function lib.versionCheck(repository)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
function lib.checkDependency(resource, minimumVersion, printMessage)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
local creatorActive = false
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
|
||||
|
||||
Copyright (c) 2025 Linden <https://github.com/thelindat/fivem>
|
||||
Copyright © 2025 Linden <https://github.com/thelindat>
|
||||
]]
|
||||
|
||||
local function formatNumber(num)
|
||||
|
||||
Reference in New Issue
Block a user