IanCassels Posted February 15, 2017 Share Posted February 15, 2017 Can someone help me out with changing the default cargo model with for instance a hummer . I tried to point out to an other edm file but no luck. Changing the type will result that it wont show up in de cargo menu. local _trgZone = trigger.misc.getZone("hummer_pickup_zone") local newCargo = { ["groupId"] = math.random(999, 99999), ["category"] = "Cargos", -- default cargo in order to activate menu ["type"] = "Cargo1", -- default cargo in order to activate menu ["unitId"] = math.random(999, 99999), ["x"] = _trgZone.point.x, ["y"] = _trgZone.point.z, ["canCargo"] = true, ["mass"] = 700, ["heading"] = 0, ["name"] = "the hummer", ["dead"] = false, ["country"] = "USA", ["shape_name"] = "hummer_p_1", -- i guess the edm file } coalition.addStaticObject(country.id.USA, newCargo) Link to comment Share on other sites More sharing options...
Recommended Posts