Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #73 from renzuzu/a
Browse files Browse the repository at this point in the history
tweak(client): added cost price
  • Loading branch information
renzuzu authored Aug 16, 2021
2 parents a22b99f + 4949f32 commit 836eb84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions client/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -773,14 +773,13 @@ end)
local opened = false
RegisterNetEvent('renzu_garage:opengaragemenu')
AddEventHandler('renzu_garage:opengaragemenu', function(id,v)
opened = true
local garage,table = id,v
ESX.TriggerServerCallback("renzu_garage:isgarageowned",function(owned,share)
local multimenu = {}
if not owned then
firstmenu = {
['Buy Garage'] = {
['title'] = 'Buy Garage',
['title'] = 'Buy Garage - $'..v.cost..'',
['fa'] = '<i class="fad fa-question-square"></i>',
['type'] = 'event', -- event / export
['content'] = 'renzu_garage:buygarage',
Expand All @@ -805,10 +804,12 @@ AddEventHandler('renzu_garage:opengaragemenu', function(id,v)
TriggerEvent('renzu_contextmenu:show')
elseif not owned and IsPedInAnyVehicle(PlayerPedId()) then
TriggerEvent('renzu_notify:Notify', 'error','Garage', 'You dont owned this garage')
opened = true
elseif owned and IsPedInAnyVehicle(PlayerPedId()) then
local prop = GetVehicleProperties(GetVehiclePedIsIn(PlayerPedId()))
ReqAndDelete(GetVehiclePedIsIn(PlayerPedId()))
TriggerServerEvent('renzu_garage:storeprivate',id,v, prop)
opened = true
elseif owned then
secondmenu = {
['Go to Garage'] = {
Expand Down
10 changes: 5 additions & 5 deletions config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ private_garage = {
},
['large2'] = { -- garage id
name = 'Vespucci Garage', -- custom name
cost = 1, -- cost for purchase
cost = 10000, -- cost for purchase
max = 15, -- max vehicles available for this garage
buycoords = vector4(-1009.1658935547,-782.21197509766,15.69953918457,226.37933349609),
coords = vector4(239.85778808594,-1004.7095947266,-98.999862670898,88.549873352051),
Expand All @@ -824,7 +824,7 @@ private_garage = {
},
['large3'] = { -- garage id
name = 'West Vinewood Garage', -- custom name
cost = 1, -- cost for purchase
cost = 10000, -- cost for purchase
max = 15, -- max vehicles available for this garage
buycoords = vector4(-271.14663696289,286.91583251953,89.948661804199,178.25668334961),
coords = vector4(239.85778808594,-1004.7095947266,-98.999862670898,88.549873352051),
Expand All @@ -851,7 +851,7 @@ private_garage = {
},
['large4'] = { -- garage id
name = 'Crustenburg Garage', -- custom name
cost = 1, -- cost for purchase
cost = 10000, -- cost for purchase
max = 15, -- max vehicles available for this garage
buycoords = vector4(-1819.3909912109,-331.56829833984,42.809921264648,322.92663574219),
coords = vector4(239.85778808594,-1004.7095947266,-98.999862670898,88.549873352051),
Expand Down Expand Up @@ -879,7 +879,7 @@ private_garage = {

['small'] = { -- garage id
name = 'PillBox Garage', -- custom name
cost = 1, -- cost for purchase
cost = 10000, -- cost for purchase
max = 2, -- max vehicles available for this garage
buycoords = vector4(54.288684844971,-1047.7552490234,29.026540756226,170.9740447998),
coords = vector4(178.95022583008,-1000.0469970703,-98.999862670898,184.86791992188),
Expand All @@ -895,7 +895,7 @@ private_garage = {
},
['small2'] = { -- garage id
name = 'Sandy Garage', -- custom name
cost = 1, -- cost for purchase
cost = 10000, -- cost for purchase
max = 2, -- max vehicles available for this garage
buycoords = vector4(1410.3173828125,3620.0886230469,34.331230163574,288.8303527832),
coords = vector4(178.95022583008,-1000.0469970703,-98.999862670898,184.86791992188),
Expand Down

0 comments on commit 836eb84

Please sign in to comment.