Jump to content

Chronic

Members
  • Posts

    145
  • Joined

  • Last visited

Everything posted by Chronic

  1. In the resource I downloaded, (https://community.multitheftauto.com/ind ... ls&id=5531) there is no file called script.lua, so I'm pretty sure I have the wrong one. Post the download link to the one you're using.
  2. Yes man i will try but how i give name to the first pickup to use it? i mean how to give the x,y,z names to use them? How to give a variable for the object? Why are you asking silly questions? You know how to make variables because you made one here. local sound = playSound ("songs/MissionComplete.mp3")
  3. Chronic

    help?

    Yes, it is possible using bindKey
  4. source is not a ped. yeah but the ped not defined in the client side..so ? So... if it's not defined how do you expect it to work?
  5. Chronic

    save stats

    That wouldn't work, savePedStats and loadPedStats wern't defined at the time they were called. Therefore, savePedStats would return nil
  6. Chronic

    Tooltip

    Have you defined button?
  7. Hello, I have a question. setPlayerMuted is not working, any idea how to fix this? curses = { "mta is gey" } addEventHandler ( "onPlayerChat", getRootElement(), function (msg) for i,v in ipairs(curses) do if msg == v then if not ( getTeamName( getPlayerTeam ( source ) ) == "Staff" ) then setPlayerMuted ( source, true ) cancelEvent () outputChatBox ( "Flaming is not tolerated!", root ) elseif ( getTeamName( getPlayerTeam ( source ) ) == "Staff" ) then end end end end ) and the error is: Access denied @ 'setPlayerMuted'
  8. Well, did you set up MySQL?
  9. That or guiCreateLabel ( Put, Some, Numbers, Here, " ", true/false )
  10. When you're in-game and logged in (Make sure you have admin privileges), type /debugscript 3 and post what it says here.
  11. Ah yes you're right, I was just giving the solution to his debug error
  12. Comments are written with -- so it should look like function spawnArmas (player) giveWeapon ( player, 24, 200 ) -- Desert Eagle giveWeapon ( player, math.random(26,27), 200 ) -- Sawn ou Spaz giveWeapon ( player, math.random(30,31), 200 ) -- M4 ou AK end addEventHandler ( "onPlayerSpawn", getRootElement(), spawnArmas )
  13. I'm trying to get onClientClick to work, but I don't know how. The rectangle draws fine.
  14. Reason why it's messy is because I left out a lot of script. I have guiGetScreenSize(). And xXMADEXx, bindKey changes vis = true/false However, none of this solves my problem.
  15. Hello everyone I'm having trouble with dx. I know my code isn't correct, I'm just not sure how to do it. What I have so far is: vis = false function dxInterface ( ) dxDrawRectangle ( sx-950, sy-570, sx, sy ) end bindKey ( "F4", "down", function ( ) addEventHandler ( "onClientRender", getRootElement (), dxInterface ) if not ( vis ) then vis = true elseif ( vis ) then vis = false end end ) --function clix ( ) --outputChatBox ( "Hello" ) --end if ( vis ) then addEventHandler ( "onClientClick", getRootElement(), clix ) elseif not ( vis ) then removeEventHandler ( "onClientClick", getRootElement(), clix ) end So, my question is, how do I make onClientClick work? If anyone could help me it would be greatly appreciated!
  16. Possible reasons are that the file doesn't exist or it's in an invalid format Post your code so I or anyone else can help you further.
  17. setWorldSpecialPropertyEnabled
×
×
  • Create New...