Jump to content

Jade

Members
  • Posts

    35
  • Joined

  • Last visited

Everything posted by Jade

  1. Jade

    Mute Problem

    Server-side: function mutePlayer(player,command,victimName) if victimName then local victim = getPlayerFromName(victimName) if victim then if ( not isPlayerMuted(victim) ) then setPlayerMuted(victim, true) outputChatBox("You have been muted.",victim) end else outputChatBox("Could not find player with name: "..tostring(victimName),player) end else outputChatBox("Usage: /mute ",player) end end addCommandHandler("mute",mutePlayer) Client-side: function DXtext () local sWidth,sHeight = guiGetScreenSize() dxDrawText("Mute: No",sWidth*0.900, sHeight*0.452, sWidth*0.715, sHeight*0.997,tocolor(255,255,255,175),0.8,"bankgothic","left","top",false,false,false) end addEventHandler ( "onClientRender", getRootElement(), DXtext ) A little help?
  2. Jade

    Mute Problem

    How can show on the screen? İn the right part 'Mute= Yes' or 'Mute= No'
  3. I figured out my problem and solved.Thanks dude
  4. nope.my code why bad argument ?
  5. buton1 = guiCreateButton(20,60,70,40,"Kırmızı",false,pencere) addEventHandler("onClientGUIClick",buton1,basla) and how press button 1 times i press x3 'function isik ()' start x3 sorry my bad english
  6. function basla() zaman1 = setTimer(isik21,1000,0) zaman2 = setTimer(isik22,2000,0) zaman3 = setTimer(isik23,3000,0) zaman4 = setTimer(isik23,4000,0) end function isik() playerVehicle = getPedOccupiedVehicle ( getLocalPlayer() ) if ( playerVehicle ) then setVehicleOverrideLights ( playerVehicle, 1 ) killTimer(zaman1) killTimer(zaman2) killTimer(zaman3) killTimer(zaman4) end end debugscript; WARNING: as\C.lua:12: Bad argument @ 'killTimer' [Expected lua-timer at argument 1] WARNING: as\C.lua:13: Bad argument @ 'killTimer' [Expected lua-timer at argument 1] WARNING: as\C.lua:14: Bad argument @ 'killTimer' [Expected lua-timer at argument 1] WARNING: as\C.lua:15: Bad argument @ 'killTimer' [Expected lua-timer at argument 1]
  7. Jade

    Help Open Window

    no, the script is this --gui Window2 = guiCreateWindow(20,20,200,200,"Window",false) guiSetVisible(Window2, false) --script bindKey("F2", "down", function () guiSetVisible(Window2, true) showCursor(true) end) not need a new function function test () if Window2 then return end Window2 = guiCreateWindow(20,20,200,200,"Window",false) end bindKey("F2","down",test) Thank You ZL|Lucas and golanu21
  8. Will be opened only once. function test () Window2 = guiCreateWindow(20,20,200,200,"Window",false) end bindKey("F2","down",test)
  9. Jade

    Help Animwindow

    my script doesn't work Client function animwindow() Window = guiCreateWindow(400,200,500,380,"Window",false) Animation.createAndPlay(Window, Animation.presets.guiMove(300, 600, 1000)) end addEventHandler ( "onClientResourceStart", getRootElement(), animwindow )
×
×
  • Create New...