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'
|
||||
|
||||
Reference in New Issue
Block a user