mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 22:06:02 +01:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ce47ef8d1 | ||
|
|
6258651d8b | ||
|
|
eecbc8f690 | ||
|
|
1d25b54e0f | ||
|
|
e18389a52a |
@@ -78,12 +78,8 @@ function NDCore.revivePlayer(reset, keepDead)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function NDCore.notify(...)
|
function NDCore.notify(...)
|
||||||
if GetResourceState("ModernHUD") == "started" then
|
|
||||||
exports["ModernHUD"]:notify(...)
|
|
||||||
elseif GetResourceState("ox_lib") == "started" then
|
|
||||||
lib.notify(...)
|
lib.notify(...)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
for name, func in pairs(NDCore) do
|
for name, func in pairs(NDCore) do
|
||||||
if type(func) == "function" then
|
if type(func) == "function" then
|
||||||
|
|||||||
@@ -218,10 +218,10 @@ end)
|
|||||||
RegisterCommand("getclothing", function(source, args, rawCommand)
|
RegisterCommand("getclothing", function(source, args, rawCommand)
|
||||||
local info = ""
|
local info = ""
|
||||||
for k, v in pairs(clothingComponents) do
|
for k, v in pairs(clothingComponents) do
|
||||||
info = ("%s\n%s = {\n drawable = %s,\n texture = %s\n},"):format(info, k, GetPedDrawableVariation(cache.ped, v), GetPedTextureVariation(cache.ped, v))
|
info = ("%s\n%s = { drawable = %s, texture = %s },"):format(info, k, GetPedDrawableVariation(cache.ped, v), GetPedTextureVariation(cache.ped, v))
|
||||||
end
|
end
|
||||||
for k, v in pairs(clothingProps) do
|
for k, v in pairs(clothingProps) do
|
||||||
info = ("%s\n%s = {\n drawable = %s,\n texture = %s\n},"):format(info, k, GetPedPropIndex(cache.ped, v), GetPedPropTextureIndex(cache.ped, v))
|
info = ("%s\n%s = { drawable = %s, texture = %s },"):format(info, k, GetPedPropIndex(cache.ped, v), GetPedPropTextureIndex(cache.ped, v))
|
||||||
end
|
end
|
||||||
lib.setClipboard(info)
|
lib.setClipboard(info)
|
||||||
end, false)
|
end, false)
|
||||||
|
|||||||
@@ -262,7 +262,7 @@ lib.addCommand("pay", {
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
lib.addCommand("unlock", {
|
lib.addCommand("unlock", {
|
||||||
help = "Admin force unlock vehicles",
|
help = "Admin Command, force unlock vehicle.",
|
||||||
restricted = "group.admin",
|
restricted = "group.admin",
|
||||||
}, function(source, args, raw)
|
}, function(source, args, raw)
|
||||||
local ped = GetPlayerPed(source)
|
local ped = GetPlayerPed(source)
|
||||||
@@ -309,13 +309,13 @@ lib.addCommand("revive", {
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
lib.addCommand("dv", {
|
lib.addCommand("dv", {
|
||||||
help = "Admin command, delete vehicles within the range.",
|
help = "Admin command, delete vehicles within the range or the closest.",
|
||||||
restricted = "group.admin",
|
restricted = "group.admin",
|
||||||
params = {
|
params = {
|
||||||
{
|
{
|
||||||
name = "range",
|
name = "range",
|
||||||
type = "number",
|
type = "number",
|
||||||
help = "The range to select vehicles for deleteion from",
|
help = "Range to delete vehicles in",
|
||||||
optional = true
|
optional = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -269,11 +269,7 @@ local function createCharacterTable(info)
|
|||||||
|
|
||||||
function self.notify(...)
|
function self.notify(...)
|
||||||
if not self.source then return end
|
if not self.source then return end
|
||||||
if GetResourceState("ModernHUD") == "started" then
|
|
||||||
TriggerClientEvent("ModernHUD:notify", self.source, ...)
|
|
||||||
elseif GetResourceState("ox_lib") == "started" then
|
|
||||||
TriggerClientEvent("ox_lib:notify", self.source, ...)
|
TriggerClientEvent("ox_lib:notify", self.source, ...)
|
||||||
end
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user