Personal Vehicle Whitelist script - Whitelist Personal Vehicles!

Introducing my vehicle whitelist script! Seamlessly grant access to select vehicles with ease. Tailored for servers offering exclusive ‘Personal Vehicle’ packages, this tool empowers you and your team to effortlessly manage whitelisting directly within the game interface. Elevate your server experience and streamline vehicle whitelisting!

Preview

Config.lua:

Required:
Database
oxmysql

Optional:
The default notification is ox_lib, however using the config files, you may use any notification resource you like!

Download link removed as V2 Will be released for free. Post awaiting removal!

Code is accessible Partially
Subscription-based No
Lines (approximately) 800+
Requirements oxmysql + a database
Support Yes
5 Likes

this should be free and im pretty sure someones already released this

1 Like

Please provide the link to the release :slight_smile:

[Free][Standalone] Vehicle Whitelist (finally a universal vehicle restriction script) :laughing:

1 Like

Awesome, from what I see, the whitelisting is done through a config file, which means only people with file access can update this, and it will only take effect on a server restart.

Mine is done in game, and takes effect immediately.

No no dont get me wrong. Not saying yours is bad. Tried to provide the link to that other guy before

1 Like

I know, I was just explaining the differences for everyone else looking :slight_smile:

That one is pretty shitty ngl

1 Like

Great script tho the fact that u can whitelist vehicles with a menu instead of code🤌🏽

1 Like

I think this is expensive

1 Like

I bought this script & absolutely love it! Very clean UI, and I LOVE how it instantly takes effect instead of using a file or code! Great job. ; )

1 Like

Im sorry to hear this, what do you believe would be a more suitable price for this resource?

Pro Tip: Don’t create dependencies on notification resources. It is easy enough to create your own event and use config options for users to select what notification system they want their community to use. You can even add an option to allow people to add their own notification events/exports in.

Here’s a suggestion. Add this code to a client-side file in your resource, ideally one that is not escrow encrypted:

RegisterNetEvent('example:client:notify')
AddEventHandler('example:client:notify', function(notifText, notifType)
    if Config.Notification == 'ox_lib' then
        lib.notify({
            description = notifText,
            type = notifType
        })
    elseif Config.Notification == 'esx' then
        ESX.ShowNotification(notifText, notifType, 3000)
    elseif Config.Notification == 'okokNotify' then
        exports['okokNotify']:Alert('House Robbery', notifText, 3000, notifType, false)
    elseif Config.Notification == 'custom' then
        -- Add custom event here
    end
end)

Then add a config option to config.lua similar to below:

Config.Notification = 'ox_lib' -- 'ox_lib', 'esx', 'okokNotify' or `custom`.

Once this is done, all you need to do is add this anywhere you want to send a notification:

TriggerEvent('example:client:notify', 'Test Text', 'inform') -- Client-side event
TriggerServerEvent('example:client:notify', source, 'Test Text', 'inform') -- Server-side event

If you want to parse different config options (such as duration) this is easy enough to do. On the client event, add a new variable to the event then call it anywhere within the event that you want to use the information. If you look at how notifText and notifType work you’ll get the gist of it.

1 Like

This has been a game changer for my work load. Love having this so my staff can set people up as needed and it doesnt fall onto my plate or another devs to-do list.

1 Like

Change Log:
Price Reduced to $7
Added better format for the webhook
Added more notifications, such as a success notification when the vehicle was added.
Added more config options, commands + notifications, you can now use custom notifications.

cries

OP request