Jump to content

roddydennvor

Members
  • Posts

    132
  • Joined

  • Last visited

Everything posted by roddydennvor

  1. yes , i want to use his spend time on my server... if his online time under 13 hours then his nametag color on score board turn yellow
  2. Hello there ,, I want to make script when the player play on my server under 13 hours , then the name color on scoreboard is yellow... Server-side local hoursplayed = getElementData(thePlayer, "hoursplayed") if hoursplayed < 13 then exports.global:setPlayerNametagColor(targetPlayer , 255, 255, 0) end This Script not work.. Can you help me please ? Thanks
  3. delete mta original resources files before you try to use cylus script
  4. Hello there,, Actually i can't find this Object ID's or ".txd" file of this object All Saints General Hospital I Want to change this text to "Rumah Sakit Immanuel" if i can... The Flag I Want to change this flag color with my nation flag... But i cant find Object ID's of this flag Please help me,,, Tell me how to retexture this object if we can,,, or tell me how to delete this object . Your help is greatly appreciated Thank You
  5. @MrBrutus , just copy and paste that on putty ?
  6. What is this error mean WARNING:sound\sonidoS.luat:6: Bad argument @ 'addEventHandler' [Expected function at argument 3, got nil] What i must to do ? Bad Argument This is the script... function onVehicleLocked( ) local sound = playSound("clink.mp3",false) setSoundVolume(sound, 0.5) end addEventHandler ( "onVehicleLocked", getLocalPlayer(), player_Spawn ) on line 6 i can see this : addEventHandler ( "onVehicleLocked", getLocalPlayer(), player_Spawn ) i think the error is "player_Spawn" right ?
  7. ~~ Try This ~~ local Gate = { [1] = createObject(980, 2527.5, 2423.9, 12.6,0,0,0), } local GateName = "DMV Side Gate" exports.pool:allocateElement(Gate[1]) local open = false local function ResetOpenState() open = false end local function closeDoor(thePlayer) moveObject(Gate[1], 3000,2527.5, 2423.9, 12.6, 0, 0, 0) setTimer(ResetOpenState, 1000, 1) end -- Gate code / Using local functions to avoid local function useDoor(thePlayer, commandName, ...) local x, y, z = getElementPosition(thePlayer) local distance = getDistanceBetweenPoints3D(2527.5, 2423.9, 12.6, x, y, z) if (distance<=15) and (open==false) then if (exports.global:hasItem(thePlayer, 64) or exports.global:hasItem(thePlayer, 82)) then moveObject(Gate[1], 3000, 2517.5, 2423.9, 12.6, 0, 0, 0) setTimer(closeDoor, 5000, 1, thePlayer) end end end addCommandHandler("gate", useDoor)
  8. Hello there , I wanna to make some script , When i buy some clothes in store , then i choose the skin in GUI , but when i choose the skin , i can choose what color i want ? for example , like paint job system , when i click the gui button , i can choose the color of my skin ?
  9. roddydennvor

    HELP

    Can someone tell me or give me some example about creating playsound function in server side ?
  10. nothing happen again , do you want to see the resource ?
  11. nothing happen , not detect on debugscript
  12. nothing happen and no error is detected ...
  13. hello , what is wrong with this script , it doesn't work server-side addEvent("ffhelmet") local cases = {} for i,v in ipairs(getElementsByType("player"))do setElementData(v, "ffhelmet", 0) end addEventHandler("ffhelmet", function(player) if(getResourceState(getResourceFromName("bone_attach")) == "running")then if(getElementType(player) == "player")then if(getElementData(player, "helmet") ~= 1)then case = createObject(2054,0,0,0) exports.bone_attach:attachElementToBone(case,player,1,0,0.04,0.06,0,0,180) cases[player] = case elseif(getElementData(player, "helmet") == 1)then setElementData(player, "helmet", 0) exports.bone_attach:detachElementFromBone(cases[player]) destroyElement(cases[player]) end end else outputChatBox("ERROR #1", player, 255, 50, 0) end end ) Client-side if itemID then if (itemID==90) then -- Fullface Helmet triggerEvent("onClientGUIClick", source, value) setElementData(player, "helmet", 1) case = createObject(2054,0,0,0) exports.bone_attach:attachElementToBone(case,player,1,0,0.04,0.06,0,0,180) cases[player] = case elseif(getElementData(player, "helmet") == 1)then setElementData(player, "helmet", 0) exports.bone_attach:detachElementFromBone(cases[player]) destroyElement(cases[player]) end end
  14. sorry @perfect , but this is not working , when I click on the helmet (item id 90) in my inventory, nothing happened
  15. hello there , I want to change the command script into event... but I failed , what's wrong here ... Server-side local cases = {} for i,v in ipairs(getElementsByType("player"))do setElementData(v, "ffhelmet", 0) end function(player) if(getResourceState(getResourceFromName("bone_attach")) == "running")then if(getElementType(player) == "player")then if(getElementData(player, "helmet") ~= 1)then case = createObject(2054,0,0,0) exports.bone_attach:attachElementToBone(case,player,1,0,0.04,0.06,0,0,180) cases[player] = case elseif(getElementData(player, "helmet") == 1)then setElementData(player, "helmet", 0) exports.bone_attach:detachElementFromBone(cases[player]) destroyElement(cases[player]) end end else outputChatBox("ERROR #1", player, 255, 50, 0) end end addEvent("helmet") addEventHandler("ffhelmet", ) Client-side if itemID then if (itemID==90) then -- Fullface Helmet triggerEvent("onClientGUIClick", source, value) setElementData(player, "helmet", 1) case = createObject(2054,0,0,0) exports.bone_attach:attachElementToBone(case,player,1,0,0.04,0.06,0,0,180) cases[player] = case elseif(getElementData(player, "helmet") == 1)then setElementData(player, "helmet", 0) exports.bone_attach:detachElementFromBone(cases[player]) destroyElement(cases[player]) end end else outputChatBox("Error", player, 255, 50, 0) end end )
  16. okay , on server side ... triggerClientEvent(........, "Sound",......) What i must to fill in the blank ?
  17. how does it make PlaySound function on the server side? like for example, when I click on the NPC / PED then the sound will appear? Thx Before ...
  18. maybe you can't drop this but you can use it in tank ...
  19. I'm so confused, what should I fill in that server side and client side, like this ? server 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 ) addEvent("mask", true) addEventHandler("mask", getRootElement(), toys) Server side like this ? and how to start this script if i clik item id 1 in my inventory Item id 1 is mask...
  20. this is vG script right ... ?
×
×
  • Create New...