-
Posts
865 -
Joined
-
Last visited
Everything posted by Callum
-
https://forum.multitheftauto.com/viewtop ... 91&t=26541
-
Then the answer (in my opinion) is; No.
-
I guess that means as it's not focused on the player, and the HUD is a property of the player element, it won't show.
-
Then that's the problem in your ACL
-
Is your resource called exactly "commands!", or is the ! a typo?
-
The server must be restarted for ACL to be updated.
-
[url=http://thelongestlistofthelongeststuffatthelongestdomainnameatlonglast.com/]http://thelongestlistofthelongeststuffa ... glast.com/[/url]
-
Something like; function timer() setTimer(vote,300000,1) end addEventHandler("onResourceStart",getResourceRootElement(),timer) -- onResourceStart isn't a very good option, replace it... function vote() exports.votemanager:startPoll() -- Between () enter the arguments (see [url=https://wiki.multitheftauto.com/wiki/Resource:Votemanager]https://wiki.multitheftauto.com/wiki/Resource:Votemanager[/url]) end
-
1. I have that problem, but when I resume the game from an Alt+Tab, it's easily fixable by pressing the "Alt" button on your keyboard. 2. Entirely up to you.
-
(As far as I know:) there is no event for as a player gets in/out water, so the only option would be a timer to check every player, and see if they're in water or not. Such as below; function makeTimer() setTimer(checkPlayers,5000,0) end addEventHandler("onResourceStart",getResourceRootElement(),makeTimer) function checkPlayers() for k, v in ipairs(getElementsByType("player")) do if (isElementInWater(v)) then killPed(v) end end end
-
Look into GTA SA .TXD, .DFF and .COL files. And use these functions; https://wiki.multitheftauto.com/wiki/Client_Scrip ... _functions
-
By scripting them, of course. You could try https://community.multitheftauto.com/index.php?p= ... ils&id=614 or make your own.
-
Try looking on the MTA Community site.
-
Don't know the cause, but you can use math.floor().
-
Sorry, forgot to add to previous post; In XML maybe somin like; local file = xmlLoadFile("elements.map") for k, v in ipairs (xmlNodeGetChildren(file)) do xmlNodeSetAttribute(v,"x","") xmlNodeSetAttribute(v,"x","") xmlNodeSetAttribute(v,"x","") xmlSaveFIle(file) xmlUnloadFile(file) end
-
Yea, setElementData should work, maybe somin like; for k, v in ipairs (getElementsByType("elementNode")) do setElementData(v,"x",nil) setElementData(v,"y",nil) setElementData(v,"z",nil) end That is, if the element data is "x", "y", and "z", and you're using a .map file (and of course you want to do it for every one of that element)l.
-
I tried; "login 12345678910111213141516171819202122232425262728293031323334353637383940411111111111111111111111111111111111111111111111111111111111111111111111111134444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444 test"; and that did nothing, so I guess there is.
-
The link just leads to a parked domain.
-
Use https://wiki.multitheftauto.com/wiki/PlaySound or https://wiki.multitheftauto.com/wiki/PlaySound3D
-
Ok, I've released 1.2.0 which fixes the resolution problem.
-
Sorry, Gamesnert, I don't understand what you mean, but thanks for the other suggestions, I'll work on them for a future release.
-
~BigMac~, just read https://forum.multitheftauto.com/viewtop ... 91&t=26931 and click the blue text which says "Click here".
-
You cannot set a timer outside of a function. try; function healcar(vehicle) for k, v in ipairs ( getElementsByType("player") ) do if ( isPedInVehicle(v) ) then local vehicle = getPedOccupiedVehicle(v) outputChatBox('car fixed.', v) fixVehicle ( vehicle ) end end end function startTimer() setTimer( healcar, 500, 0 ) -- timer changes all vehicles fix to random every 0.5 sec. end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), startTimer ) Note: looping through every player every 0.5 seconds can cause strain on the server.
-
Place your server's image in the /images/ directory named "agg_bg.png", then start the resource.
