Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About TuRisMo

  • Rank
    Advanced Member


  • Gang

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. TuRisMo

    MTA Crash problem

    DxDiag log: ------------------ System Information ------------------ Time of this report: 9/8/2014, 21:10:37 Machine name: SKANDER Operating System: Windows 8 Release Preview 32-bit (6.2, Build 8400) (8400.winmain_win8rc.120518-1423) Language: French (Regional Setting: French) System Manufacturer: Hewlett-Packard System Model: HP Compaq 6730s BIOS: Default System BIOS Processor: Intel(R) Core(TM)2 Duo CPU T5870 @ 2.00GHz (2 CPUs), ~2.0GHz Memory: 2048MB RAM Available OS Memory: 2044MB RAM Page File
  2. function noattack(attacker) if getElementData(source,"invincible") then setElementHealth(attacker,getElementHealth(attacker)-10) cancelEvent() end end addEventHandler("onClientPlayerDamage", attacker, noattack) function noVehicleDamage() if (isPedInVehicle (source) == false) then return end staffVehicle = getPedOccupiedVehicle(source) setVehicleDamageProof(staffVehicle, true) end addEvent ("trololo", true ) addEventHandler("trololo", localPlayer, noVehicleDamage) Alright this script is supposed to make the Admin his car inv
  3. TuRisMo

    Object ID

    You dont say! I tried it before posting here, and it did not work, anyways I found the ID already
  4. TuRisMo

    Object ID

    Can you please give me the ID of the object below? (It's in the Restricted area, in the army base)
  5. TuRisMo


    function joinTeam() triggerServerEvent("setteam", player) guiSetVisible(windowjob, false) showCursor(false) guiSetInputEnabled(false) end addEventHandler("onClientGUIClick", GUIEditor_Button[1] , joinTeam, false)
  6. TuRisMo


    when I trigger the event from client side, nothing happens
  7. TuRisMo


    team = createTeam ( "Team", 0, 50, 0 ) function addtoteam(thePlayer) local account = getPlayerAccount(thePlayer) local accName = getAccountName ( account ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then setPlayerTeam(thePlayer, team) setElementModel(thePlayer, 287) setElementData( thePlayer, "Occupation", "Example", true ) outputChatBox("You are now Team.", thePlayer, 0, 255, 0) end end addEvent("setteam", true) addEventHandler("setteam", root, addtoteam) So the point is that if the accountname is in Admin ACL group
  8. TuRisMo


    I couldn't find out how to use the ifElement correctly with audios
  9. TuRisMo


    I want help in something else, how to check if the sound is over? I mean, I am going to make a checkbox for "Enabling Replay" when the song is over. so it would be like that function replay() if ( --the song is over) then if ( guiCheckBoxGetSelected(checkbox1) ) then startSound( sound ) end end end
  10. TuRisMo


    myonlake solution worked, thanks for your help both
  11. TuRisMo


    I want to play the music URL from the gridlist item, but when I click on the button it does not work local music = guiGridListGetItemText ( gridlist1, guiGridListGetSelectedItem ( gridlist1 ), column1 ) function playTheSound ( ) sound = playSound (music) setSoundVolume (sound, 1.0) outputChatBox ( " Started Playing " ..music ) end addEventHandler ( "onClientGUIClick", button2, playTheSound, false ) function stopTheSound ( ) stopSound(sound) outputChatBox ( music.. "Stoped" ) end addEventHandler ( "onClientGUIClick", button3, stopTheSound, false )
  12. TuRisMo


    that works, thanks
  13. TuRisMo


    I want to know why when I press the button the item isn't getting added to the gridlist. Thanks function addplaylist() if guiGetText(edit1) ~= "" then row = guiGridListAddRow(gridlist1) guiGridListSetItemText(gridlist1, row, column1, guiGetText(edit1), false, false) guiSetText(edit1,"") end end addEventHandler(onClientGUIClick, button1, addplaylist()) function removeplaylist() if guiGridListGetSelectedItem(gridlist1) ~= -1 then row, column = guiGridListGetSelectedItem(gridlist1) guiG
  14. Errm Hi, I am making a script and this is the first time I deal with GUIs, I am getting a problem in this GUI, it doesn't even show up when I press F10 D: function guiToggleVisible ( ) if ( guiGetVisible ( musicwindow ) == true ) then guiSetVisible ( musicwindow, false ) else guiSetVisible ( musicwindow, true ) end end musicwindow = guiCreateWindow(0, 0, 461, 336, "Music Player", false) checkbox1 = guiCreateCheckBox(190, 285, 91, 31, "Enable Replay", false) edit1 = guiCreateEdit(2
  • Create New...