-
Posts
145 -
Joined
-
Last visited
Everything posted by Chronic
-
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.
-
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")
-
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?
-
source is not a ped.
-
That wouldn't work, savePedStats and loadPedStats wern't defined at the time they were called. Therefore, savePedStats would return nil
-
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'
-
Well, did you set up MySQL?
-
That or guiCreateLabel ( Put, Some, Numbers, Here, " ", true/false )
-
When you're in-game and logged in (Make sure you have admin privileges), type /debugscript 3 and post what it says here.
-
Ah yes you're right, I was just giving the solution to his debug error
-
What is x,y,z? You never defined it.
-
What's the problem?
-
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 )
-
I'm trying to get onClientClick to work, but I don't know how. The rectangle draws fine.
-
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.
-
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!
-
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.
-
setWorldSpecialPropertyEnabled
