Initial commit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
--================================--
|
||||
-- FIRE SCRIPT v1.6.3 --
|
||||
-- by GIMI (+ foregz, Albo1125) --
|
||||
-- License: GNU GPL 3.0 --
|
||||
--================================--
|
||||
|
||||
-- Chat
|
||||
|
||||
function sendMessage(text)
|
||||
TriggerEvent(
|
||||
"chat:addMessage",
|
||||
{
|
||||
templateId = "firescript",
|
||||
args = {
|
||||
"FireScript v1.7.4",
|
||||
text
|
||||
}
|
||||
}
|
||||
)
|
||||
end
|
||||
|
||||
-- Table functions
|
||||
|
||||
function countElements(table)
|
||||
local count = 0
|
||||
if type(table) == "table" then
|
||||
for k, v in pairs(table) do
|
||||
count = count + 1
|
||||
end
|
||||
end
|
||||
return count
|
||||
end
|
||||
Reference in New Issue
Block a user