Search the Community
Showing results for tags 'properties'.
-
Hello MTA... I'm a lurker and I am pretty sure this is my first post on this server : / So, I am making an RP MTA SA Server, and I am only doing this as a hobby. I know you can add Green Housing Icons and Blue Housing Icons to the Map in Map Editor, and I know you can use createObject(id, x, y, z) in the lua coding (I plan on using lua coding for this)... But how do I populate the entire map with Green/Blue Housing Icons? To Buy or Rent Property? I'm sure there are many people that have done this manually, but their must be a resource that has all the housing locations open source? I tried to download open source MTA Servers to get the Map but I don't know how to go about loading the map. So, my question is, is their an Easy way to script all the Houses/Properties in the Game without going from 1 house to the next and collecting coords? This is probably a really dumb question, I just had to ask.
- 1 reply
-
- properties
- help
-
(and 2 more)
Tagged with:
-
I've made a server-type .Lua that should apply several 'setWeaponProperties' to the weapons. It works for some weapons, but not for others. For example, I've set the Deagle (replaced with a 6 bullet drum) to 'maxiumum_clip_ammo' = 6. This works correctly. However, with other weapons, it doesn't. Here's the script: function weaponProps () -- M9 -- setWeaponProperty(22, "pro", "maximum_clip_ammo", 14) -- Revolver -- setWeaponProperty(24, "pro", "maximum_clip_ammo", 6) -- Shotgun -- setWeaponProperty(25, "pro", "maximum_clip_ammo", 7) -- Uzi -- setWeaponProperty(28, "pro", "maximum_clip_ammo", 30) -- AKMS -- setWeaponProperty(30, "pro", "maximum_clip_ammo", 35) -- G36 -- setWeaponProperty(31, "pro", "maximum_clip_ammo", 40) -- Kar -- setWeaponProperty(33, "pro", "maximum_clip_ammo", 5) -- Mosin -- setWeaponProperty(34, "pro", "maximum_clip_ammo", 1) end addEventHandler ("onResourceStart", getRootElement(), weaponProps) Essentially, it runs as soon as the resource is started. As a beginner's test, I'm only modifying the max ammo clip. It works for: - Deagle (Revolver) - Shotgun - AK-47 (AKMS) - M4 (G36) - Rifle (Kar) - Sniper (Mosin) It doesn't work for: - Colt (M9) - UZI