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>
|
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 = {}
|
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>
|
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
|
---@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>
|
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
|
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>
|
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 }
|
---@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>
|
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 = {}
|
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>
|
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 = {}
|
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>
|
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
|
---@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>
|
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 = {}
|
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>
|
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.
|
--- 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>
|
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
|
---@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>
|
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.
|
---@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>
|
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.
|
---@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>
|
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.
|
---@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>
|
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.
|
---@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>
|
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.
|
---@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>
|
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
|
---@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>
|
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.
|
---@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>
|
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.
|
---@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>
|
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.
|
---@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>
|
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.
|
---@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>
|
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.
|
---@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>
|
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]]
|
local glm_sincos = require 'glm'.sincos --[[@as fun(n: number): number, number]]
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
MIT License
|
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
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
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>
|
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 }
|
---@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>
|
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')
|
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>
|
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
|
---@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>
|
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
|
---@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>
|
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
|
---@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>
|
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
|
---@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>
|
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
|
---@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>
|
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 = {}
|
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>
|
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.
|
---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>
|
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.
|
---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>
|
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.
|
---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>
|
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.
|
---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>
|
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.
|
---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>
|
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.
|
---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>
|
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.
|
---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>
|
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
|
---@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>
|
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 = {}
|
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>
|
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
|
---@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>
|
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
|
---@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>
|
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
|
---@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>
|
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
|
-- 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>
|
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
|
---@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>
|
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.\
|
---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>
|
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.
|
---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>
|
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'
|
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>
|
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
|
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>
|
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)
|
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>
|
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
|
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>
|
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 = {}
|
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>
|
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
|
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>
|
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?
|
---@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>
|
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
|
---@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>
|
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 = {}
|
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>
|
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
|
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>
|
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'
|
---@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>
|
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 }
|
---@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>
|
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'
|
---@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>
|
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
|
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>
|
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
|
---@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>
|
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?
|
---@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>
|
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
|
---@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>
|
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
|
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>
|
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'
|
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>
|
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
|
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>
|
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
|
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>
|
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
|
---@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>
|
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)
|
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>
|
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)
|
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>
|
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
|
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>
|
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)
|
local function formatNumber(num)
|
||||||
|
|||||||
Reference in New Issue
Block a user