This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local WEAPONS <const> = { | |
[`weapon_bat`] = `w_me_bat`, | |
[`weapon_petrolcan`] = `prop_ld_jerrycan_01`, | |
[`weapon_hazardcan`] = `prop_ld_jerrycan_01`, | |
[`weapon_carbinerifle`] = `w_ar_carbinerifle`, | |
[`weapon_carbinerifle_mk2`] = `w_ar_carbineriflemk2`, | |
[`weapon_assaultrifle`] = `w_ar_assaultrifle`, | |
[`weapon_assaultrifle_mk2`] = `w_ar_specialcarbine`, | |
[`weapon_bullpuprifle`] = `w_ar_bullpuprifle`, | |
[`weapon_bullpuprifle_mk2`] = `w_ar_bullpupriflemk2`, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function IsMale(ped) | |
return GetEntityModel(ped) == `mp_m_freemode_01` | |
end | |
function StartWelcomeScene() | |
local p = promise.new() | |
Citizen.CreateThread(function() | |
PrepareMusicEvent("FM_INTRO_START") -- ``FM_INTRO_START`` | |
TriggerMusicEvent("FM_INTRO_START") -- ``FM_INTRO_START`` | |
local ped = PlayerPedId() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DiscordEmbed = {} | |
DiscordEmbed.__index = DiscordEmbed | |
EmbedType = {} | |
local function joinTables(t1, t2) | |
for i = 1, #t2 do | |
t1[#t1 + 1] = t2[i] | |
end | |
return t1 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Definir a estrutura do nó da árvore | |
local Node = {} | |
Node.__index = Node | |
function Node:new(value) | |
local node = {} | |
setmetatable(node, Node) | |
node.value = value | |
node.left = nil | |
node.right = nil |