> For the complete documentation index, see [llms.txt](https://aklgaming.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aklgaming.gitbook.io/documentation/gusti-resources/gusti-givevehicle/usage.md).

# Usage

## Commands

{% tabs %}
{% tab title="Open Menu Give Vehicle" %}
/givecar
{% endtab %}

{% tab title="Open Menu Delete Vehicle" %}
/delcarplate
{% endtab %}
{% endtabs %}

## Custom Notification

If you want to change the notification with your notification, you can open the `client/custom.lua` folder

```lua
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

```lua
-- 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`

```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
```
