TopGarages - TOP-Scripts/STORE-SCRIPTS GitHub Wiki
To use NPWD Phone Garages, edit npwd_qb_garage\client.lua
and
after ther first local
add
local Garages = {["world"] = {label = "World"}}
to use with qb-garages also, you do not need this
if your app does not look right in your phone, still in client.lua find
v.state ==
-- and change to
tonumber(v.state) ==
#Add this fields to your player_vehicles database table
ALTER TABLE `player_vehicles
ADD COLUMN `ingarage` int NULL DEFAULT 0,
ADD COLUMN `posH` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
ADD COLUMN `lastparked` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
or import player_vehicles.sql inside the options folder, to your Database
ensure TopGarages
-- in your server.cfg
start TopGarages
#Now when a player is in an owned vehicle, the system will save its location to the database.
#After Server restart, the player's vehicles will not spawn, vehicles only spawn when the player enters the Server, but if players leaves, is vehicles will stay, until the next server restart
#You can add Blips for the player to tow the vehicle back
#Check the options folder for customization
This Script should work in conjunction with any other garage system (untested in all)