diff --git a/client.lua b/client.lua index 655650a..7efe5df 100644 --- a/client.lua +++ b/client.lua @@ -34,6 +34,7 @@ Citizen.CreateThread(function() Ammunations.LoadDefault() LesterFactory.LoadDefault() StripClub.LoadDefault() + CargoShip.LoadDefault() Graffitis.Enable(true) diff --git a/fxmanifest.lua b/fxmanifest.lua index a746e68..5db4d83 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -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" diff --git a/gtav/cargoship.lua b/gtav/cargoship.lua new file mode 100644 index 0000000..1a5b7e7 --- /dev/null +++ b/gtav/cargoship.lua @@ -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 +} \ No newline at end of file