https://choosealicense.com/no-permission/
-
You are not allowed to: use, edit, copy, re-release or re-distribute without written permission from the main contributors
-
Each contributor can only re-release or re-distribute their own work on third party platforms
Naming convention: PascalCase (capitalise each word)
Variables: Timer = 0
, GlobalWarrants = {}
Functions: GetCharacterName()
, GetTableLength()
Events: Separated by a "."
-> "Phone.Start"
, "Phone.Ringtone.Start"
, "Phone.Ringtone.Stop"
- Variables
- Functions
- Threads
- Events
- NUI Callbacks
Queue = {
Players = {
Connected = {},
Connecting = {},
}
}
function Queue:PlayerCount()
return Utilities:GetTableLength(Queue.Players.Connected) + #self.Players.Connecting
end
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
end
end)
RegisterNetEvent("Resource.Function")
AddEventHandler("Resource.Function", function()
end)
RegisterNUICallback("callback-name", function(data, cb)
cb("ok")
end)
- Manifest version
- Dependencies
- Shared scripts
- Client scripts
- Server scripts
- UI Page
- Files
resource_manifest_version "05cfa83c-a124-4cfa-a768-c24a5811d8f9"
dependencies {
"Rivalry-Utilities",
"jssql",
}
shared_scripts {
"@Rivalry-Utilities/shared.lua",
}
client_scripts {
"client/main.lua",
}
server_scripts {
"@Rivalry-Utilities/server/common.lua",
"server/queue.lua",
}
ui_page "index.html"
files {
"file1",
"file2",
}