-
Posts
370 -
Joined
-
Last visited
-
Days Won
2
Everything posted by AJXB
-
I'm no experience is such things, but I assume it's a GTA problem, see this problem happened to me because of MTA:SA storage limit, that's what I assume. Offtopic: what's your steam ID?
-
Someone's work? your work must be authentic, new, to be well appreciated, you can't just write a 10 lines code of an already existing idea and expect to be appreciated.. haha.
-
People, please, a script of <10 lines can't be called a resource, and frankly can't be sold, who would pay for a code that can be made by anyone? Make a large resource, something can can be called a resource, and try to sell it, make it as an example of your experience, don't make an outputChatBox resource and try to sell it, that'd be just funny, we'll thank you for the laughs, people make 2-3 huge resources in order to gain the required reputation. Please, try.
-
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.