Config.BlacklistedVehs = { -- these vehicles will delete themselves on spawn [`SHAMAL`] =true, [`LUXOR`] =true, [`LUXOR2`] =true, [`JET`] =true, [`LAZER`] =true, [`BUZZARD`] =true, [`BUZZARD2`] =true, [`ANNIHILATOR`] =true, [`SAVAGE`] =true, [`TITAN`] =true,}Config.BlacklistedPeds = { -- these NPCs will delete themslves on spawn [`s_m_y_ranger_01`] =true, [`s_m_y_sheriff_01`] =true, [`s_m_y_cop_01`] =true, [`s_f_y_sheriff_01`] =true, [`s_f_y_cop_01`] =true, [`s_m_y_hwaycop_01`] =true,}
Consumables
When adding new consumables you need to go into the server/consumables.lua and make that item useable with the QBCore.Functions.CreateUseableItem function more info on how to do that in Server Function Reference
You can also increase the thirst or hunger with ["itemname"] = math.random(-20, -10) or a single number, the only important thing is that the lower number is first
ConsumeablesEat = { -- how much hunger is relieved on use ["sandwich"] =math.random(35, 54), ["tosti"] =math.random(40, 50), ["twerks_candy"] =math.random(35, 54), ["snikkel_candy"] =math.random(40, 50),}ConsumeablesDrink = { -- how much thirst is relieved on use ["water_bottle"] =math.random(35, 54), ["kurkakola"] =math.random(35, 54), ["coffee"] =math.random(40, 50),}ConsumeablesAlcohol = { -- how much thirst is relieved on use ["whiskey"] =math.random(20, 30), ["beer"] =math.random(30, 40), ["vodka"] =math.random(20, 40),}
Logs
Logs are located on the server side to hide your webhooks form clients you can find them in the server/logs.lua if you don't know how to make discord webhooks click here
RegisterCommand('serverlogtest', function() TriggerEvent('qb-log:server:CreateLog', 'testwebhook', 'Test Webhook', 'default', 'Webhook Client Side setup successfully')
end
Discord rich presence
More documentation for this can be found here. The configuration for this can be found in the client/discord.lua
CreateThread(function()whiletruedo-- This is the Application ID (Replace this with you own)SetDiscordAppId()-- Here you will have to put the image name for the "large" icon.SetDiscordRichPresenceAsset('logo_name')-- (11-11-2018) New Natives:-- Here you can add hover text for the "large" icon.SetDiscordRichPresenceAssetText('This is a lage icon with text')-- Here you will have to put the image name for the "small" icon.SetDiscordRichPresenceAssetSmall('logo_name')-- Here you can add hover text for the "small" icon.SetDiscordRichPresenceAssetSmallText('This is a lsmall icon with text') QBCore.Functions.TriggerCallback('smallresources:server:GetCurrentPlayers', function(result)SetRichPresence('Players: '..result..'/64')end)-- (26-02-2021) New Native:--[[ Here you can add buttons that will display in your Discord Status, First paramater is the button index (0 or 1), second is the title and last is the url (this has to start with "fivem://connect/" or "https://") ]]--SetDiscordRichPresenceAction(0, "First Button!", "fivem://connect/localhost:30120")SetDiscordRichPresenceAction(1, "Second Button!", "fivem://connect/localhost:30120")-- It updates every minute just in case.Wait(60000)endend)
Rockstar editor
Commands
/editor - Activates rockstar editor
/record - Starts a recording
/clip- Strarts to record a clip
/saveclip - Saves the clip
/delclip - Deletes clip
Items
vodka - Consumable
beer - Consumable
whiskey - Consumable
sandwich - Consumable
twerks_candy - Consumable
snikkel_candy - Consumable
tosti - Consumable
water_bottle - Consumable
coffee - Consumable
kurkakola - Consumable
joint - Drug
cokebaggy - Drug
crack_baggy - Drug
xtcbaggy - Drug
oxy - Drug
meth - Drug
armor - Gives armor on use
heavyarmor - Gives armor on use
binoculars - Useable binoculars to look far distances
parachute - adds a parachute to the player allowing to deploy it in the air