-
Posts
1,089 -
Joined
-
Last visited
Everything posted by Xwad
-
ohh i thoguht createBlipAttachedTo would create a blip the wiki says: This function creates a blip that is attached to an element. So it creates the blip
-
The player blip is not working when the player spawns with id 21:/ server function setBlip(theSkin) if theSkin == 21 then outputChatBox("medic_blip") local blip_medic = createBlipAttachedTo ( source, 22 ) local team_axis = getTeamFromName(Axis) local players = getPlayersInTeam(team_axis) setElementVisibleTo(blip_medic, players, true) end end addEventHandler ( "onPlayerSpawn", getRootElement(), setBlip )
-
ohh bug fiex i just triggered the wrong function
-
lol thats true, i did not see that, thanks:D But now i got a new bug: moveObject Bad Argumentum expected element at argument 1, got none plane = createObject(10757, -3926, 138, 150, 10, 10, 180) setObjectScale ( plane, 0.-- s8) --> function bomber() setTimer(moveObject, 1000, 1) end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), bomber) function move_object() local x,y,z = getElementPosition(plane) local newX = x - 100 moveObject(plane, 8500, newX,y,z ) end
-
why is the script not working? the debugscript says: stack overflow plane = createObject(10757, -3926, 138, 100, 10, 10, 180) setObjectScale ( plane, 2) function bomber() setTimer(moveObject, 1000, 1) end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), bomber) function moveObject() local x,y,z = getElementPosition(plane) local newX = x - 100 moveObject(plane, 8500, x,y,newX ) end
-
why is the sound not random? client sounds = {"files/sounds/g_grenade1.mp3", "files/sounds/g_grenade2.mp3", "files/sounds/g_grenade3.mp3", "files/sounds/g_grenade4.mp3", "files/sounds/g_grenade5.mp3", "files/sounds/g_grenade6.mp3"} sound = sounds [ math.random ( #sounds ) ] function onClientPlayerWeaponFireFunc(weapon) if (weapon == 16) then outputChatBox("g",1,55,32) local x,y,z = getElementPosition(localPlayer) local sound_grenade = playSound3D(sound, x,y,z, false) setSoundVolume(sound_grenade, 1) setSoundMaxDistance(sound_grenade, 100) end end addEventHandler("onClientPlayerWeaponFire", root, onClientPlayerWeaponFireFunc)
-
I have the same problem:/ if somebody knows the solution pls tell it me!
-
i want to sync it lol thats why i used server side
-
client sounds = {"files/fire1.wav", "files/fire2.wav", "files/fire3.wav"} sound = sounds [ math.random ( #sounds ) ] fired = false function projectile_sound(veh) local x,y,z = getElementPosition (veh) local sound_shoot = playSound3D(sound,x,y,z, false) setSoundMaxDistance( sound_shoot, 400 ) setSoundVolume(sound_shoot, 1) attachElements ( sound_shoot, veh, 0,0,0 ) setTimer ( function() local sound_reload = playSound3D("files/reload.wav",x,y,z, false) setSoundMaxDistance( sound_reload, 100 ) setSoundVolume(sound_reload, 1) attachElements ( sound_reload, veh, 0,0,0 ) end, 1000, 1 ) end addEvent( "projectile_sound", true ) addEventHandler( "projectile_sound", localPlayer, projectile_sound ) function projectile_client() if fired == false then local veh = getPedOccupiedVehicle(localPlayer) if getElementModel(veh) == 457 then triggerServerEvent ( "projectile_server", resourceRoot, veh ) fired = true setTimer ( function() fired = false end, 5000, 1 ) end end end bindKey("mouse1", "down", projectile_client) server function projectile_server(veh) triggerClientEvent ("projectile_sound", getRootElement(), veh) end addEvent( "projectile_server", true ) addEventHandler( "projectile_server", getRootElement(), projectile_server )
-
and why is this one not working? sounds = {"files/fire1.wav", "files/fire2.wav", "files/fire3.wav"} sound = sounds [ math.random ( #sounds ) ] fired = false function projectile_sound(veh) local x,y,z = getElementPosition (veh) local sound_shoot = playSound3D(sound,x,y,z, false) setSoundMaxDistance( sound_shoot, 400 ) setSoundVolume(sound_shoot, 1) attachElements ( sound_shoot, veh, 0,0,0 ) local sound_reload = playSound3D("files/reload.wav",x,y,z, false) setSoundMaxDistance( sound_reload, 100 ) setSoundVolume(sound_reload, 1) attachElements ( sound_reload, veh, 0,0,0 ) end addEvent( "projectile_sound", true ) addEventHandler( "projectile_sound", localPlayer, projectile_sound )
-
Scripter es modellezo Skype: obersovszky
-
Skype: obersovszky
-
I did, and export the dff with that selected col. Mta crashed again
-
ok, but first i want to make the model work 100%. How can i fix the col issue? Because if i export it with skip col or vehicle parts, then it still will have the col of the gta sa car, and not of the model
-
but whats the problem with my model? it has no col:/ and the misc_b component is rotating in the wrong direction
-
Maybe its outdated, but its possible to do, because one of my friend did the same , just with another model! CodyL heres the resource with the dff included: http://www.mediafire.com/download/hfztb ... V_flak.rar
-
now i exported it somehow, and it works, but very buggy:/ 1 min , i upload the dff
-
Hi guys, i really need help. I want to replace this model on the rihno, but i have some problems with the vehiccle parts (components). I cant export it to dff because it says that i can only export 1 selected object, but sometimes i can export it somehow, but then it always crashes mta:/ file: http://www.mediafire.com/download/dwwru ... _model.max if someone could help me, pls mark me on skype : obersovszkyf
-
Hmm interesting. I tested it on my local server, and it works. its only not working on he hoster server. But the way thanks!
-
oh no sry! I exported it now , and it works:D! Thanks a lot. I just thought, if i want to use it like a vehicle then i have to export it with "vehicle parts"
-
Cant because it only allows to export one selected object. Thats why i exported it with vehicle parts.