Skip to content

Latest commit

 

History

History

vrp_showroom

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

vrp_showroom

fx-server only, requires my vrp_garages

Support me and my scripts on Patreon:
Support me and my scripts on Patreon


If you get SQL errors it should be because its made to work with databases that accept ADD IF NOT EXISTS.
To create the tables on your database follow the steps:

  1. Remove every IF NOT EXISTS from server.lua
  2. Run the server once.
  3. Comment out the MySQL.query("vRP/showroom_columns") adding -- before it
  4. Restart the server one more time.
  5. You're good to go from now on.

Replace:

		    MySQL.execute("vRP/add_vehicle", {user_id = user_id, vehicle = vname})

		    vRPclient.notify(player,{lang.money.paid({vehicle[2]})})

With:

		    TriggerEvent('veh_SR:CheckMoneyForBasicVeh', user_id, vname, vehicle[2] ,veh_type)

on lines 111 and 113 of your vrp/modules/basic_garage.lua, above the vRP.closeMenu(player) function, for basic garage compatibility.

License

FiveM Scripts
Copyright (C) 2018  Sighmir

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.