-
Posts
1,090 -
Joined
-
Last visited
Everything posted by Xwad
-
I have one more problem with sync: now this time its with bone_attach.. the problem is with the attachElementToBone. Other players can't see the object on the player, only the localPlayer can see it function custom_sniper() local id = getElementModel ( source ) if id == 23 then local PedWeapon = getPedWeapon(localPlayer) if (PedWeapon == 34) then sniper = createObject(1853,-1317,-167,14.14) exports.bone_attach:attachElementToBone(sniper2,localPlayer,12,0,0,0,0,-90,0) outputChatBox("sniper created", 255, 255, 0) end end if id == 23 then local PedWeapon = getPedWeapon(localPlayer) if not (PedWeapon == 34) then destroyElement(sniper2) outputChatBox("sniper destroyed", 255, 0, 0) end end end addEventHandler ( "onClientPlayerWeaponSwitch", getRootElement(), custom_sniper )
-
the sync is not working:/ i use root, i dont know why its not working.. I thought root contains the sync function sniper_sound(weaponID) local muzzleX, muzzleY, muzzleZ = getPedWeaponMuzzlePosition(source) if weaponID == 34 then local id = getElementModel ( localPlayer ) if id == 23 then sound_shoot = playSound3D("files/sounds/sniper_kar98.wav", muzzleX, muzzleY, muzzleZ, false) setSoundMaxDistance(sound_shoot, 100) setTimer ( function() local sound_reload = playSound3D("files/sounds/reload.wav", muzzleX, muzzleY, muzzleZ, false) setSoundMaxDistance(sound_reload, 10) setSoundVolume(sound_reload, 0.12) end, 500, 1 ) elseif id == 103 then sound_shoot2 = playSound3D("files/sounds/sniper_springfield.wav", muzzleX, muzzleY, muzzleZ, false) setSoundMaxDistance(sound_shoot2, 100) setTimer ( function() local sound_reload = playSound3D("files/sounds/reload.wav", muzzleX, muzzleY, muzzleZ, false) setSoundMaxDistance(sound_reload, 10) setSoundVolume(sound_reload, 0.12) end, 500, 1 ) end end end addEventHandler("onClientPlayerWeaponFire", root, sniper_sound)
-
can you make me an example for a rotating ped on the gui please? i did not find any example for that:/
-
But i mean: if player has skon id 10 then his m4 in his hamd will have 30 clip ammo, but if the player has skin id 11 then his m4 will have 40 clip ammo
-
Is it possible to add more maximum_clip_ammo property for a weapon? i want to make that if the player has skin id 10 then his m4 maximum_clip_ammo will be 30 and if the players has skin id 11 then the maximum_clip_ammo will be 50. is this possible? thx
-
the link is dead. can someone send it me pls?
-
Hi! Recently i saw a map on mta community: https://community.multitheftauto.com/in ... s&id=10449 This map is not made with mta map editor. Its exported from 3ds max. I decided to export this map to mta: https://3dwarehouse.sketchup.com/model. ... c0122e67c9 I imported the file to 3dsax 2010 and exported it to dff (using kams max script), and i created a col for the model (using kams max script). The export was successful, but the col is bugging. There are invisible wals in the col, so when i tested the model in mta then in the model there were some invisible walls.. My question is that why is the col bugging? The previous race map models col is working correctly. How was it exported? What did i wrong? Please help!! Thanks!!
-
bad argumentum @ 'attachElements' [Expected element at argumentum 2, got number '30']
-
I am trying to attach a custom weapon to a normal weapon but it's not working. function getWeapon() local PedWeapon = getPedWeapon(getLocalPlayer(),30) if ( PedWeapon ) then local weapon = createWeapon("m4", 0,0,0) attachElements ( weapon, PedWeapon, 0, 0, 1, 0, 0, 0 ) end end addCommandHandler("t", getWeapon) no debug
-
Ez igaz.. Amugy Xenius is magyar.
-
Working thanks!!
-
why is the data not saving when i start the resource? server sided function create() local main = createObject ( 2983, -1330.6999511719, -29.39999961853, 13, 0, 1.5, 0 ) local top = createObject ( 2985, -1331.0999755859, -29.39999961853, 12.9, 0, 13.75, 0 ) local veh = createVehicle ( 457, -1330.7998046875, -31.099609375, 14.2, 0, 0, 271.99951171875 ) attachElements(veh, top, 0,-1.6,2,0,0,271.99951171875) setElementAlpha(veh, 0) setElementData(source, "top", top) end addEventHandler ( "onResourceStart", getRootElement(), create ) function check() local test = getElementData(source "top") destroyElement(test) end addCommandHandler("t", check)
-
SAAW: San Andreas At War - World War II | v1.2 | 24/7 |
Xwad replied to Einheit-101's topic in Servers to play on
good good! -
still not working! pls help!! i tried with false and true but its not working:/ i still fall throught. setOcclusionsEnabled(false) setOcclusionsEnabled(true)
-
bunker collisons fixed again
-
yeah thats usefull! thanks!
-
It's not easy. You have to download: 3ds max 2010, kams max script, skechUp 2015, txd workshop, col editor and photoshop. take a look at this: http://gtaforums.com/topic/547591-how-t ... -sketchup/
-
hi! Is there any event for vehicle spawn? or create vehicle? I only found onVehicleRespawn:/ Thanks
-
New screenshots: unfortunately i could not use the previous bunker model becaouse it's collisons is bugged, so i made my own model.
-
Unfortunately no. But recently the map really changed. The town is now more bigger and i rebuilded all bunkers with these model: https://3dwarehouse.sketchup.com/model. ... da6256060d new screenshots soon!
-
converted it to obj but it was the same problem
-
in Which programm? 3ds max or SkechUp?
-
txd is fixed but the col and the dff is still not working!! HELP
