Usage
Commands
Custom Notification
If you want to change the notification with your notification, you can open the client/custom.lua
folder
RegisterNetEvent('gusti-givevehicle:Notify')
AddEventHandler('gusti-givevehicle:Notify', function(args, _type, time)
if Config.Notify == 'mythic_notify' then
exports['mythic_notify']:SendAlert(args, _type, time)
elseif Config.Notify == 'ox_lib' then
if _type == 'error' then
icons = 'xmark'
elseif _type == 'success' then
icons = 'fa-solid fa-thumbs-up'
elseif _type == 'info' then
icons = 'fa-solid fa-circle-info'
end
lib.notify({
title = '',
description = args,
position = 'top',
duration = 5000,
type = _type,
style = {
backgroundColor = '#141517',
borderRadius = 10,
color = '#C1C2C5',
['.description'] = {
color = '#909296'
}
},
icon = icons
})
elseif Config.Notify == 'ESX' then
ESX.ShowNotification(args, _type, time)
end
end)
Custom Language
If you want to change the language translation, you can go to the locales
folder
en = English
id = Indonesia
Change Language
If you want to change the language, you can set it in the config.lua section
-- Language
Config.Locale = GetConvar('esx:locale', 'en') -- en / id
Custom GeneratePlate
If you want to change / customize the vehicle plate random, you can see it in client
> custom.lua
function GeneratePlate()
math.randomseed(GetGameTimer())
local generatedPlate = string.upper(GetRandomLetter(Config.PlateLetters) .. (Config.PlateUseSpace and ' ' or '') .. GetRandomNumber(Config.PlateNumbers))
local isTaken = IsPlateTaken(generatedPlate)
if isTaken then
return GeneratePlate()
end
return generatedPlate
end
Last updated