Follow the instructions below to run the gusti-givevehicle script on your server
Extract file
Copy / cut gusti-givevehicle into your server's resources folder
Open server.cfg
Add the gusti-givevehicle script by ensure gusti-givevehicle in server.cfg
Restart server
Finished
Now you can enjoy the features of the gusti-givevehicle script on your server
Before running the gusti-givevehicle script, please pay attention to the dependencies section!
Configuration
Config = {}Config.CheckForUpdates =true-- check for update available?-- LanguageConfig.Locale =GetConvar('esx:locale', 'en') -- en / id-- NotificationConfig.Notify ='ox_lib' -- 'mythic_notify', 'ox_lib', 'ESX'-- Do you want to enable a message to the player that he got a vehicle?Config.EnableReceivingMessages =true-- Who can access the give vehicle menu?Config.isAdmin = {"steam:xxxxxxxxxxxxxxx" -- steam / license}-- looks like this: 'LLL NNN'-- The maximum plate length is 8 chars (including spaces & symbols), don't go past it!Config.PlateLetters =3Config.PlateNumbers =3Config.PlateUseSpace =true-- Inserting a vehicle into owned_vehiclesConfig.GiveVehicleTogarage = { stored =1, -- [1 = Garage] - [0 = Impound] parking ='VespucciBoulevard' -- Which garage do you want to save to?}-- Configuration ['ox_lib'] Dialog InputConfig.MenuGiveVehicle = { PlayerID = { icon ='fas fa-clipboard-user', required =true }, VehicleModel = { icon ='fas fa-car', required =true }, VehiclePlate = { icon ='fas fa-clipboard-question', required =false }}Config.MenuDeleteVehicle = { VehiclePlate = { icon ='fas fa-clipboard-question', required =true }}-- Configure Alert Dialog for Give VehicleConfig.AlertDialogGiveVehicle = { enable =true, -- true / false centered =true, -- centers the dialog vertically and horizontally cancel =true, -- displays a cancel button (ESC is still available if this is not defined) size ='sm', -- size?: 'xs' or 'sm' or 'md' or 'lg' or 'xl' labels = { -- Allows you to define the displayed labels for cancel and/or confirm buttons. confirm ='Give Vehicle', cancel ='Cancel', }}-- Configure Alert Dialog for Delete VehicleConfig.AlertDialogDeleteVehicle = { enable =true, -- true / false centered =true, -- centers the dialog vertically and horizontally cancel =true, -- displays a cancel button (ESC is still available if this is not defined) size ='sm', -- size?: 'xs' or 'sm' or 'md' or 'lg' or 'xl' labels = { -- Allows you to define the displayed labels for cancel and/or confirm buttons. confirm ='Delete Vehicle', cancel ='Cancel', }}