
roddydennvor
Members-
Posts
132 -
Joined
-
Last visited
Everything posted by roddydennvor
-
Simply ... Just try this This is client-side -Sound.lua addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() setTimer(function() playSound("music.mp3") end, 2000, 1) end ) -meta.xml Just change music.mp3 with your file's name...
-
so i must to change this script like this ?? if (itemID==17) then local cases = {} for i,v in ipairs(getElementsByType("player"))do setElementData(v, 0) end addEventHandler("onClientGUIClick", function(player) if(getResourceState(getResourceFromName("bone_attach")) == "running")then if(getElementType(player) == "player")then if(getElementData(player, "mask") ~= 1)then setElementData(player, "mask", 1) case = createObject(2053,0,0,0) exports.bone_attach:attachElementToBone(case,player,1,0,0,-0.6,0,0,90) cases[player] = case elseif(getElementData(player, "mask") == 1)then setElementData(player, "mask", 0) exports.bone_attach:detachElementFromBone(cases[player]) destroyElement(cases[player]) end end else outputChatBox("ERROR #1", player, 255, 50, 0) end end end ) Not Work
-
hello, How to edit this script so when i click mask in my inventory then play this script ? I mean, so I do not have to type /mask to run this script ... but when I click the guitar in my inventory, then this script will run? local cases = {} for i,v in ipairs(getElementsByType("player"))do setElementData(v, "mask", 0) end addCommandHandler("mask", function(player) if(getResourceState(getResourceFromName("bone_attach")) == "running")then if(getElementType(player) == "player")then if(getElementData(player, "mask") ~= 1)then setElementData(player, "mask", 1) case = createObject(2053,0,0,0) exports.bone_attach:attachElementToBone(case,player,1,0,0,-0.6,0,0,90) cases[player] = case elseif(getElementData(player, "mask") == 1)then setElementData(player, "mask", 0) exports.bone_attach:detachElementFromBone(cases[player]) destroyElement(cases[player]) end end else outputChatBox("ERROR #1", player, 255, 50, 0) end end )
-
1 . How to make script , when i click NPC then do playsound function ? I mean when gui opened and the sound will played ? sorry bad english 2. How to replace vehicle destroy sound ? boom 3. How to play sound when vehicle engine turn on ? 4. How to play sound when someone is jailed ? (i think this server side ? ) Thanks a Lot's
-
./mta-server -d << This command to up your server 24/7 killall -9 mta-server << This command to shutdown your server
-
Can someone tell me tutorial how to encrypt my lua files ? and tutorial to decrypt it , not compile ... Thx..
-
How to make script when i turn on my engine or unlock my vehicle then play the sound , i just know playsound function ,
-
yeah i think i can compile lua file on my VPS and i must to have backup of that's , so when i to edit it , i compile and replace again on my VPS , Thanks for that information @all
-
Okay , if i compile my lua file , it is safe ? i mean , can people stole my script ? Sorry bad english
-
Where i must to put this script ?
-
Hello , How to encrypt my lua file ? And please give me tutorials to decrypt it.. Thanks
-
How to replace NRG-500 sound ?
-
but how to setting item id ? so when i click item id 1 , not anything ? if item == 1 , then ?
-
Hii ,, Ex : item id 1 = food How to make script when i click item id 1 in my inventory , then my health will increase ?
-
wow thats what i mean haha thank you very much @boro
-
hmm , it's not working ...
-
not so ..., I am looking for a script, if my health lower than 30 , then my screen will flashing...
-
hii Anubhav, sorry but that's script not working ... fadeAlert = {} function addRednessOnDamage() for k, source in ipairs(getElementsByType("player")) do if getElementHealth(source) <30 then fadeAlert[source] = true else if fadeAlert[source] then fadeAlert[source] = false end end end end setTimer(addRednessOnDamage, 2500, 0) function removeIt() fadeCamera( source, true ) end function checkRedness() for k, source in ipairs(getElementsByType("player")) do if fadeAlert[source] then fadeCamera( source, false, 1.0, 0, 0, 0 ) removeIt( source ) setTimer(checkRedness, 1000, 1) end end end
-
Thank for the function , like this ? function addRednessOnDamage ( ) fadeCamera ( source, false, 1.0, 255, 0, 0 ) setTimer ( fadeCameraDelayed, 500, 1, source ) fade back to normal end addEventHandler ( "onPlayerDamage", getRootElement(), addRednessOnDamage ) local health = getElementHealth( localPlayer ) if (health <= 30) then function fadeCameraDelayed(player) if (isElement(player)) then fadeCamera(player, true, 0.5) end end This script not working , what is wrong ? sorry i am noob in scripting
-
how to create a script if my character low HP ,then the display will flashing ? What is the function ?
-
Oh yeah ,,, thank you @TAPL very helpfull
-
What's wrong with this script , i just add this to set ped walking style but it's not working Walking.lua addEventHandler ( "onPlayerJoin", root, function ( ) setPedWalkingStyle ( source, 125 ) end ) Meta.xml thanks before
-
okay thank you very much @TAPL
-
Hi Guys, I am working on a toys system which I am gonna release as soon as i can, Some Screenshots I've posted Below, All the players who are on the server can see this... Features: [*] Helmet : /helmet [*] Fullface Helmet : /ffhelmet [*] Mask : /mask [*] Backpack :/backpack [*] Kevlar : /kevlar [*] Mask : /mask This resource need bone_attach script to run it...
-
Hello there , How to get walking style id ? is walking style id same as skin id ? Thank's before...