-
Posts
1,903 -
Joined
-
Last visited
-
Days Won
1
Everything posted by xeon17
-
Login in your account , restart your resource, open F8 , type debugscript 3
-
playSound3D will play the sound on a location , so it will be hearable for everybody. Use playSound instead.
-
What do you mean there aren't examples? there are 5 great exmples,or you want someone make the script finished for you? (as always)
-
Check your PM's. @Edit, Yesterday when i saw the warring message about the version which my server have , i updated the server and since the update everything is normal , it look's the problem is solved
-
Hello , recently i have a problem with my server , every time when someone is trying to connect appears this error. Error downloading requested files. Failure when receiving data from the peer. [Recv failure: Connection was reset] [(GW)ChatSystem/chat-c.lua] Could someone tell me , what this mean? and how to fix it?
-
Where is vehicle definied? and , you're using the wrong event
-
Yes , but it's a good example how the createProjectile function work. Also you'll need to use bindKey to create the projectile , when the player hit a key.
-
The example on wiki is just awesome , everything good explained. Check! https://wiki.multitheftauto.com/wiki/CreateProjectile
-
addCommandHandler("/attachmod", attachMod, false) addCommandHandler("/detachmod", detachMod, false) should be addCommandHandler("attachmod", attachMod, false) addCommandHandler("detachmod", detachMod, false) And there isn't any existing function with the name ToggleVehicleWeapon.
-
Your code tottaly no make sense
-
We don't give free scripts here, and you should learn how to script. Try finding the script in the MTA Community site: https://community.multitheftauto.com/
-
Yes.
-
Don't forget to make it for all resolutions.
-
If you want someone make a police job for you , then you posted in the wrong section. Right Section; viewforum.php?f=177 I can recommend you the police job created by MrBrutus which is the only i know. viewtopic.php?f=108&t=78775&hilit=%5Brel%5D+police+job
-
local marker = createMarker(1643.6999511719, -2237.8000488281, -3.7000000476837,"cylinder",2.0,0,255,255,255)
-
Anything more? and please read the following page , it will help you to fix such errors like end expected to close function, expected symbol etcetc. https://wiki.multitheftauto.com/wiki/Debugging
-
function Nemesisbymanawydan6 ( thePlayer) local AclNome6 = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..AclNome6, aclGetGroup ( "Admin" ) ) then nemesi6 = exports [ "slothBot" ]:spawnBot ( 2598.2099609375, 1807.3173828125, 11.398876190186, 90, math.random ( 300, 303 ), 0, 0, Nemesis6, 0, "hunting", true ) setElementModel ( nemesi6, 162 ) outputChatBox ("ProjectZ has been spawned! Location: Pilgrim! One of the strongest Boss!",getRootElement(), 255, 0, 0, true ) BlipNemesis6 = createBlipAttachedTo ( nemesi6, 23 ) attachElements ( baz, nemesi6, 0.2, 0.1, 0.5, 0, 90, 0 ) setElementData(nemesi6, "nemesis6",true) if nemesi6 then exports.extra_health:setElementExtraHealth ( nemesi6, 10000 ) for _, player in ipairs(getElementsByType("player")) do triggerClientEvent(player, "nsound2", player) end end end end addCommandHandler("boss6", Nemesisbymanawydan6)
-
If you want us to help you and you don't explain what your problem is about, it doesn't help us to help you. Also check /debugscript 3
-
function Nemesisbymanawydan6 ( thePlayer) local AclNome6 = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..AclNome6, aclGetGroup ( "Admin" ) ) then nemesi6 = exports [ "slothBot" ]:spawnBot ( 2598.2099609375, 1807.3173828125, 11.398876190186, 90, math.random ( 300, 303 ), 0, 0, Nemesis6, 0, "hunting", true ) setElementModel ( nemesi6, 162 ) outputChatBox ("ProjectZ has been spawned! Location: Pilgrim! One of the strongest Boss!",getRootElement(), 255, 0, 0, true ) BlipNemesis6 = createBlipAttachedTo ( nemesi6, 23 ) attachElements ( baz, nemesi6, 0.2, 0.1, 0.5, 0, 90, 0 ) setElementData(nemesi6, "nemesis6",true) if nemesi6 then exports.extra_health:setElementExtraHealth ( nemesi6, 10000 ) for _, player in ipairs(getElementsByType("player")) do triggerClientEvent(player, "nsound2", player) end end end addCommandHandler("boss6", Nemesisbymanawydan6)
-
addEventHandler("onClientPedDamage",root, function(ata,wea,bod,los) if (ata and getElementType(ata) == "player") then if (getElementData(source,"nemesis") == true) then if (los >=5) then los = los-los+1 end end end end)
-
But here are only 9 lines...? addEvent("nsound2",true) addEventHandler("nsound2", getRootElement(), function () sound = playSound("sons/music.mp3", false) if isElement(sound) then setSoundVolume(sound, 1.0) end end )
-
Try this, "Boss" description="nemesis" type="script" version="2.2" /> "sons/music.mp3" /> Server; function Nemesisbymanawydan6 ( thePlayer) local AclNome6 = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..AclNome6, aclGetGroup ( "Admin" ) ) then nemesi6 = exports [ "slothBot" ]:spawnBot ( 2598.2099609375, 1807.3173828125, 11.398876190186, 90, math.random ( 300, 303 ), 0, 0, Nemesis6, 0, "hunting", true ) setElementModel ( nemesi6, 162 ) outputChatBox ("ProjectZ has been spawned! Location: Pilgrim! One of the strongest Boss!",getRootElement(), 255, 0, 0, true ) BlipNemesis6 = createBlipAttachedTo ( nemesi6, 23 ) attachElements ( baz, nemesi6, 0.2, 0.1, 0.5, 0, 90, 0 ) setElementData(nemesi6, "nemesis6",true) triggerClientEvent(thePlayer, "nsound2", getRootElement()) if nemesi6 then exports.extra_health:setElementExtraHealth ( nemesi6, 10000 ) end end end addCommandHandler("boss6", Nemesisbymanawydan6) btw , which line is this error unxpected symbol near ')' ?