xXMADEXx
Members-
Posts
2,718 -
Joined
-
Last visited
Everything posted by xXMADEXx
-
I guess you could use something like this: -- CLIENT -- button = createButton ( 0, 0, 50, 25, "Register", false ) addEventHandler ( "onClientGUIClick", root, -- I use "Root" because, if you use the "button" it will make a weird bug function ( ) if ( source == button ) then triggerServerEvent ( "onPlayerRegister", localPlayer ) end end ) -- SERVER -- addEvent ( "onPlayerRegister", true ) addEventHandler ( "onPlayerRegister", root, function ( ) outputChatBox ( getPlayerName ( source ).." HAS REGISTERED!", root, 0, 255, 0 ) end )
-
pickupuse = createPickup(225.93472, 1899.18359, 17.64806,1,24,0 ) function pickupsx(player) if ( source == pickupuse ) then setTimer(pickupsx,1000,0) end end addEventHandler("onPickupHit", getRootElement(),pickupsx )
-
addCommandHandler playSound -- or: playSound3D
-
Hello guys, im making my medic job, but i have two problems... The spray can makes the source do the stupid gagging animation, and I tried using "cancelEvent( )" but, it didn't work... It also takes a little bit of the sources health, so if the're health is like 5, they will die if I try to heal them. Code: ----------------------------- -- Player Healing -- ----------------------------- addEventHandler ( "onPlayerDamage", root, function ( attacker, weapon, loss ) if ( attacker ) then if ( getElementData ( attacker, "Job" ) == "Medic" ) then if ( weapon == 41 ) then if ( getElementHealth ( source ) < 100 ) then cancelEvent ( ) setElementHealth ( source, getElementHealth ( source ) + 15 ) givePlayerMoney ( attacker, 200 ) exports["SRNCore"]:sendClientMessage ( attacker, "You've healed "..getPlayerName ( source ), 0, 255, 0 ) exports["SRNCore"]:sendClientMessage ( source, getPlayerName ( attacker ).." has healed you.", 0, 255, 0 ) else exports["SRNCore"]:sendClientMessage ( attacker, getPlayerName ( source ).." dosn't need healing.", 255, 0, 0 ) cancelEvent ( ) end end end end end )
-
Make sure that the admin resources haves access to "function.createTeam"
-
oh wow, i forgot to update the distance (facepalm) fail. Thanks
-
Hey guys, im making my hospital respawn system, and for some reason it just keeps selecting the last index of the table. Im not really sure why it does this, but i've tried everything to fix it. Please help. [[ REMOVED BY xXMADEXx ]]
-
Im not making you a drug system for free..
-
Use this (You might need to edit "attacker") -- For server side -- if ( getTeamName ( getPlayerTeam ( attacker ) ) == "Yakuza" or getTeamName ( getPlayerTeam ( attacker ) ) == "The Triads" ) then -- For client side -- if ( getTeamName ( getPlayerTeam ( localPlayer ) ) == "Yakuza" or getTeamName ( getPlayerTeam ( localPlayer ) ) == "The Triads" ) then
-
https://community.multitheftauto.com/index.php?p= ... ls&id=3090 You should start looking on community for scripts.
-
This page isn't for requests. No one will give it to you.
-
I told you on a ped not on the localPlayer please bro Give me ped Those are to create it on a ped.
-
I do want to help you, but you're not even trying to make the script. You're just asking people to give it to you. If you want to learn LUA, read here: viewtopic.php?f=148&t=40809
-
Try this: minigun = { } addEventHandler("onClientResourceStart", root, function( ) for k, v in ipairs(getElementsByType ("vehicle")) do if getElementModel(v) == 600 then minigun [ v ] = createObject ( 3267,getElementPosition (v)) attachElements (minigun [ v ], v, 0, -1.7, -0.4) end end end ) function move ( ) theVehicle = getPedOccupiedVehicle ( localPlayer ) if (theVehicle) then if (getElementModel(theVehicle) == 600) and (minigun [ v ] ) then bindKey ( "vehicle_fire", "down", shot ) local xt, yt, zt, rxt, ryt, rzt = getCameraMatrix(localPlayer) attachElements (minigun [ v ] , theVehicle, 0, -1.7, -0.4, 0, 0, zt ) else unbindKey ( "vehicle_fire", "down", shot ) end end end addEventHandler ( "onClientRender", root, move) theProjectile = { } function shot( ) theVehicle = getPedOccupiedVehicle ( localPlayer ) if (theVehicle) then if getElementModel(theVehicle) == 600 and minigun [ v ] then local x, y, z = getElementPosition ( minigun [ v ] ) local rx,ry,rz = getElementRotation ( minigun [ v ] ) theProjectile[localPlayer] = createProjectile(theVehicle,20,x,y,z+10,1,vehicle) end end end ( IF any errors, post them )
-
This isn't a request page. You have to learn to do it you're self, or pay someone. Not sure, but you might be able to find one here: https://community.multitheftauto.com/
-
This page is for help, not requests. You'll have to try to make it your self, or pay someone.
-
Change this: showCursor (false) -- To: showCursor ( guiGetVisible ( GUIEditor.window[1] ) )
-
http://www.mediafire.com/download/xwf7a ... rowser.zip
-
Therefore, I believe that you will have to make a custom .col file.
-
Try this: function teleportPlayer( ) if source == GUIEditor.button[1] then triggerServerEvent("movePlayerToBotafogo",getLocalPlayer(),1479.6,-1612.8,14.0,0) outputChatBox("Bem vindo ao botafogo!") end end addEventHandler ( "onClientGUIClick", root, teleportPlayer )
-
Try this: bindKey ( "F2", "down", function ( ) local tostate = not guiGetVisible ( GUIEditor.window[1] ) guiSetVisible ( GUIEditor.window[1], tostate ) showCursor ( tostate ) end ) And, what is the error?
-
Hi guys, i was just browsing the MTA files, and i decided to try to find the server console files. Is there a way to edit what is outputed when you open MTA Server.exe?
-
He isn't talking about world coordinates. He means coordinates inside the vehicle. Just like SoldSnake14 said, think that you will have to just keep editing the script until you get it correct.
-
Im guessing they have something, for every area of SA...
