Skip to content

Commit

Permalink
Merge pull request renzuzu#173 from renzuzu/a
Browse files Browse the repository at this point in the history
feat(conf): Plate Prefix (job patrol)
  • Loading branch information
renzuzu authored Oct 25, 2021
2 parents 565b8fb + 8d26775 commit 24cce46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 26 deletions.
2 changes: 1 addition & 1 deletion client/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1772,7 +1772,7 @@ function CreateDefault(default,jobonly,garage_type,id)
if v.type == 'boat' or v.type == 'plane' then
pmult,tmult,handling, brake = 10,8,GetPerformanceStats(vehicleModel).handling * 0.1, GetPerformanceStats(vehicleModel).brakes * 0.1
end
local genplate = LetterRand()..' '..math.random(100,999)
local genplate = v.plateprefix..' '..math.random(100,999)
patrolcars[genplate] = true
local VTable = {
brand = GetVehicleClassnamemodel(tonumber(vehicleModel)),
Expand Down
28 changes: 3 additions & 25 deletions conf/public_garage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -171,34 +171,12 @@ garagecoord = {
spawn_z = 28.840564727783,
heading = 85.93824005127,
default_vehicle = { -- the vehicle listed here is like a goverment property and can be used for patrol etc. (this can be used in other garage, public or other job garage)
[1] = {model = 'police', name = 'Police', type = 'car', grade = 1}, -- minimum grade
[2] = {model = 'police2', name = 'Police 2', type = 'car', grade = 1}, -- minimum grade
[3] = {model = 'police3', name = 'Police 3', type = 'car', grade = 1}, -- minimum grade
[1] = {model = 'police', name = 'Police', type = 'car', grade = 1, plateprefix = 'LSPD'}, -- minimum grade
[2] = {model = 'police2', name = 'Police 2', type = 'car', grade = 1, plateprefix = 'LSPD'}, -- minimum grade
[3] = {model = 'police3', name = 'Police 3', type = 'car', grade = 1, plateprefix = 'LSPD'}, -- minimum grade
},
},
--JOB GARAGE
{
garage = "Police Garage 2", --PALETO
job = "police",
Type = "car",
Dist = 10,
Blip = {color = 38, sprite = 662, scale = 0.6},
--413.64483642578,-1029.7556152344,29.349027633667,108.4100189209
-- -32.752487182617,6522.2841796875,31.490859985352,250.73425292969
-- -34.871997833252,6534.1733398438,30.816513061523,133.7181854248
garage_x = -32.752487182617,
garage_y = 6522.28,
garage_z = 31.490,
spawn_x = -34.87,
spawn_y = 6534.17,
spawn_z = 30.8165,
heading = 133.71,
default_vehicle = { -- the vehicle listed here is like a goverment property and can be used for patrol etc. (this can be used in other garage, public or other job garage)
[1] = {model = 'police', name = 'Police', type = 'car', grade = 1}, -- minimum grade
[2] = {model = 'police2', name = 'Police 2', type = 'car', grade = 1}, -- minimum grade
[3] = {model = 'police3', name = 'Police 3', type = 'car', grade = 1}, -- minimum grade
},
},
{
garage = "Sheriff Garage", --PALETO
job = "sheriff",
Expand Down

0 comments on commit 24cce46

Please sign in to comment.