Skip to content

Commit 06d36be

Browse files
committed
Add cargo ship to allow setting as sunk
1 parent 8094d49 commit 06d36be

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

client.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Citizen.CreateThread(function()
3434
Ammunations.LoadDefault()
3535
LesterFactory.LoadDefault()
3636
StripClub.LoadDefault()
37+
CargoShip.LoadDefault()
3738

3839
Graffitis.Enable(true)
3940

fxmanifest.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ client_scripts {
2121
, "gtav/base.lua" -- Base IPLs to fix holes
2222
, "gtav/ammunations.lua"
2323
, "gtav/bahama.lua"
24+
, "gtav/cargoship.lua"
2425
, "gtav/floyd.lua"
2526
, "gtav/franklin.lua"
2627
, "gtav/franklin_aunt.lua"

gtav/cargoship.lua

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
-- Cargo ship: -168.1825, -2364.8259, 20.000
2+
exports('GetCargoShipObject', function()
3+
return CargoShip
4+
end)
5+
6+
CargoShip = {
7+
State = {
8+
normal = {
9+
"cargoship",
10+
"ship_occ_grp1"
11+
},
12+
sunk = {
13+
"sunkcargoship",
14+
"ship_occ_grp2"
15+
},
16+
17+
Set = function(state)
18+
CargoShip.State.Clear(false)
19+
20+
EnableIpl(state, state)
21+
end,
22+
Clear = function(refresh)
23+
EnableIpl({
24+
CargoShip.State.normal,
25+
CargoShip.State.sunk
26+
}, false)
27+
end
28+
},
29+
30+
LoadDefault = function()
31+
CargoShip.State.Set(CargoShip.State.normal)
32+
end
33+
}

0 commit comments

Comments
 (0)