HW Scripts | Licenseplate Changer [PAID]

HW Scripts | Licenseplate Changer

Introduction

This script provides a vehicle license plate system for FiveM servers. Players can change the license plate of their owned vehicles using in-game items or commands.

:white_check_mark: Features

  • Players can change the license plate of their owned vehicles.

  • Supports blacklisting certain words from being used in license plates.

  • Includes a debug mode for testing purposes.

  • Provides visual notifications for various actions.

:tools: Installation

  1. Ensure you have es_extended installed and properly configured on your server.

  2. Copy the hw_licenseplate folder into your server’s resources directory.

  3. Import the SQL file hw_licenseplate.sql into your database.

  4. Add ensure hw_licenseplate to your server.cfg file.

:globe_with_meridians: Dependencies

:white_check_mark: Usage

In-Game Commands

  • /kenteken [NEW_PLATE]: Change the license plate of the vehicle you’re currently in. (Requires test mode enabled)

In-Game Items

  • license_plate: Use this item to change the license plate of a vehicle.

Configuration

The configuration options can be found in config.lua:

  • Debug: Enable or disable debug mode for logging.

  • Test: Enable or disable test mode for using the /kenteken command.

If help is needed, you can contact me via discord.

Link for that you can find in console upon restarting the script, otherwise just search for HenkW00 on google/github/CFX

Enjoy the script, i hope you like it! :heart:

Tebex link:

HW Scripts | Licenseplate Changer

|-------------------------------------|----------------------------|
| Code is accessible | No, its not atm |
| Subscription-based | Not needed |
| Lines (approximately) | 700+ |
| Requirements | See above |
| Support | Yes, please join our discord |
|-------------------------------------------------------------------|

1 Like

You should add a link to the script :rofl:

1 Like

Damn, last night got late… i have fixed it :wink:

Nice script thanks for sharing!

But your server event “TriggerServerEvent(“hw_licenseplate:ChangePlate”, oldPlate, newPlate)” can be executed via an executor, so you should protect your event to prevent cheater from changing their plate without item maybe implement:

local item = xPlayer.hasItem(‘license_plate’)
if item then xx

1 Like

I have just pushed a new update for it :slight_smile:
You can find it here

I dont have the tools to test it with an executor, so i hope i fixed it!

local hasLicensePlate = xPlayer.hasItem('license_plate', 1)
    if not hasLicensePlate then
        TriggerClientEvent('okokNotify:Alert', playerId, "SYSTEM", "You don't have a license plate to change.", 5000, 'error')
        return
    end

Oh and placed the correct command ‘licenseplate’ instead of my own (dutch) language :joy:

1 Like

nice, you can use runcode to test your Scripts.

No i mean like, i dont have any cheats to test if u can trigger it or not…

yeah, i triggered ur Events using runcode