Skip to content

Commit

Permalink
Add cargo ship to allow setting as sunk
Browse files Browse the repository at this point in the history
  • Loading branch information
TheIndra55 committed Apr 14, 2024
1 parent 8094d49 commit 06d36be
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Citizen.CreateThread(function()
Ammunations.LoadDefault()
LesterFactory.LoadDefault()
StripClub.LoadDefault()
CargoShip.LoadDefault()

Graffitis.Enable(true)

Expand Down
1 change: 1 addition & 0 deletions fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ client_scripts {
, "gtav/base.lua" -- Base IPLs to fix holes
, "gtav/ammunations.lua"
, "gtav/bahama.lua"
, "gtav/cargoship.lua"
, "gtav/floyd.lua"
, "gtav/franklin.lua"
, "gtav/franklin_aunt.lua"
Expand Down
33 changes: 33 additions & 0 deletions gtav/cargoship.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
-- Cargo ship: -168.1825, -2364.8259, 20.000
exports('GetCargoShipObject', function()
return CargoShip
end)

CargoShip = {
State = {
normal = {
"cargoship",
"ship_occ_grp1"
},
sunk = {
"sunkcargoship",
"ship_occ_grp2"
},

Set = function(state)
CargoShip.State.Clear(false)

EnableIpl(state, state)
end,
Clear = function(refresh)
EnableIpl({
CargoShip.State.normal,
CargoShip.State.sunk
}, false)
end
},

LoadDefault = function()
CargoShip.State.Set(CargoShip.State.normal)
end
}

0 comments on commit 06d36be

Please sign in to comment.