-
Posts
367 -
Joined
-
Last visited
Everything posted by AJXB
-
If you want to turn on the radio whenever the player enters the car setRadioChannel(0) turns it off. setRadioChannel(1-12) Use the wiki page. https://wiki.multitheftauto.com/wiki/SetRadioChannel
-
setRadioChannel ( 0 ) -- Client Side only. https://wiki.multitheftauto.com/wiki/SetRadioChannel
-
You're more than welcome mate. Neither do I, XML is just too laggy, use a Lua table: Skins = { Special = { {1,"Truth", "truth,male,white,hippie"}, {2,"Maccer","maccer,male,white,:O"}, {265,"Tenpenny","officer,tenpenny,male,black,cop"}, }, Beach = { {139,"Yellow Bikini", "swimsuit,black,girl,woman,beach"}, {154,"Beach Blonde", "guy,male,white,shorts,swim"}, }, } Now you can loop it
-
Fixed a bit, try it.
-
getAircraftMaxHeight() won't work. x,y,z = getElemenetPosition (aircraft) and use the z along with some math, I suggest.
-
You can just try, not to make buggy resources?
-
So basically you're using onDebugMessage in a more advanced way along with dx functions, eh well, good job, I still rather the default debugger, no offence.
-
If you're using the default money system, you can use this code to save: -- Server Side -- Money = {} addEventHandler ("onResourceStop",root, function () for i,v in ipairs (getElementsByType( 'player' ) do -- We get all players in-game if getPlayerAccount (v) and not isGuestAccount( getPlayerAccount (v) ) then -- if they are all logged in Money[i] = getPlayerMoney (v) -- get their money setAccountData (getPlayerAccount(v),"Money",Money[i]) -- Save the money to their accounts data end end end ) -- to get the player's money just do getAccountData (theAccount,"Money")
-
Ah.. you'll need to r,g,b = getTeamColor (getPlayerTeam(thePlayer)) if you don't know anything about scripting, did you just "find" this script? lol Ask who made it, to fix it.
-
Well as much as I can see, there is no color set on line 645, maybe that's what's wrong.
-
Use this: telea1 = createMarker ( 1976.8664550781,986.17248535156,53.738746643066, "arrow", 1.5, 43, 0, 43 ) addEventHandler ("onMarkerHit",root, function (hitElement) if source == telea1 then if getPlayerTeam (hitElement) == getTeamFromName ("Crazy Boys") then setElementPosition ( hitElement, 1986.685546875,950.34997558594,10.8203125 ) setElementDimension ( hitElement, 0 ) else return cancelEvent () end end end )
-
So you're looking for a paid coder to make a GTA 5 look-alike resource, more like a criminal event? If so, you could just say, PM me.
-
if you're using the default MTA:SA Interiors resources, just edit the code and add if getPlayerTeam (hitElement,getTeamFromName("Crazy Boys")) then .. else return cancelEvent () end
-
Lol, this is just simply rude, respect others! Woovie is a respectful person, don't dare talk to him like that. If you don't like our answers, look someplace else, we're just being polite :3 we don't work for you mate.
-
Your code should be: local sw,sh = guiGetScreenSize() function drawPlayerHealth() local pHealth = getElementHealth(localPlayer) -- get player health for i=0,tonumber(pHealth/22) do -- Math.. if pHealth > 50 then -- Check the player's health is < 50 to create the green images dxDrawImage(sw/2,(sh/2)+i*10,5,5,"b.png") -- I added i*10 to make space in between the images else -- the player's health is > 50 create the red images dxDrawImage(sw/2,(sh/2)+i*10,5,5,"a.png") -- I added i*10 to make space in between the images end end end addEventHandler("onClientRender",root,drawPlayerHealth) I explained using comments, just edit the X,Y for the position you'd like. PS: I used these two images: Red: http://i.cubeupload.com/oS8w0m.png Green: http://i.cubeupload.com/5HJiN9.png
-
@Woovie is right, you're impolite. being rude won't get you answers, if you can't solve your own problem, don't be rude to others to solve it for you. Anyhow, there is no event to be triggered when player changes zones, I believe you should add a timer, to trigger addEventHandler ("onClientRender",root,drawDXElements) and setTimer to removeEventHandler I won't write the code for you, if you have any coding experience you'll know how to write this "simple" code. Hope it works for you.
-
Ehm.. I don't believe you can, "maybe", just maybe using some functions like setPedAnimation and by attaching the element to the bodypart, just maybe it's possible.
-
Great job, but I installed it on Submile Text 2 and it worked, but when I restart the application (Submile Text) the syntax at the "view" tab is gone.. it works one time only