Search the Community
Showing results for tags 'createweapon'.
-
I am creating a new weapon, and is in the aiming phase, but I would like to set the aiming position for the player, that createWeapon ("m4", 0, 0, 0) would aim where the player is aiming, and that the animation set by me [setPedAnimation (getLocalPlayer (), "shop", "shp_gun_aim", -1, true, true, false, false, 250, true)] aimed where the player looks while holding the right mouse button, How can I do it? By the way, I would like to ask if it is possible for the player not to hit when the animation is on?
-
I found a really interesting bug, and i can not fix it. Well, i created a script that creates and fires a custom wepon when a bind is pressed. It's just working fine, but when i use it on the middle of my map, then the createWeapon function is not working without debugscript. The map contains 1200 Elements. When i reduced the maps objects to ca. 300-400 objects then it worked. I really dont understand why is that happening. Is there any way to make createWepon work beside 1200 elements? Thanks
-
google translate started: I do not know how to run createWeapon through the server, so that other players see the created weapons and that their client scripts could perceive the action of this weapon. easier to say how to make synchronization for weapons between players? here are some similar scripts. I do not have my own script because I could not think of anything else. https://vk.com/away.php?to=http%3A%2F%2Fwww.mta-resource.ru%2Fforum%2Ftopic%2Fid%2F3292&el=snippet https://vk.com/away.php?utf=1&to=https%3A%2F%2Fforum.multitheftauto.com%2Ftopic%2F55963-createweapon%2F I only have a position for weapon: local m1 = createWeapon("minigun", x, y, z) local m2 = createWeapon("minigun", x, y, z) attachElements ( m1, Vehicle, 0.34, 1, 0.55, -2, 30, 95) attachElements ( m2, Vehicle, 0.7, 1, 0.55, -2, 30, 95) setWeaponProperty(m1, "fire_rotation", 0, -30, -5) setWeaponProperty(m2, "fire_rotation", 0, -30, -5)