Jump to content

myonlake

Members
  • Posts

    2,312
  • Joined

  • Days Won

    40

Everything posted by myonlake

  1. GIF files cannot be loaded into MTA. You have to convert them to PNG or JPEG or whatever else works.
  2. This has been suggested several times before in this section. For the hundredth time: developers have not confirmed this issue, however it can be found on Mantis and is being sponsored with over 70 euros.
  3. We don't help with leaked gamemodes, sorry.
  4. Make sure you define the table element as nil after the actual element is deleted, then you'll avoid getting in situations like these.
  5. https://wiki.multitheftauto.com/wiki/OnClientExplosion
  6. If you can get the Z rotation, you can also get the X and Y rotation. It's just math with sins, cons and tans.
  7. myonlake

    dx edit

    You can use getTickCount function and make a line flash in and out for a certain amount of time. Also make sure you calculate the width properly so it shows in the right position. He has a custom event for that.
  8. myonlake

    resource

    It's most likely made with 2DFX, therefore you can use particle effect resource for making stuff like this.
  9. Please find your language here (viewforum.php?f=117) and post your issue there. Google Translate will not help you in this section, unfortunately.
  10. Your meta.xml is wrong like TAPL said. The clouds are working perfectly fine, it's just that you can't even initialize the resource correctly that's wrong.
  11. In that case this could do the trick. local clothesCJ = {[0]= 67,[1]=32,[2]=44,[3]=37,[4]=2,[5]=3,[6]=3,[7]=3,[8]=6,[9]=5,[10]=6,[11]=6,[12]=5,[13]=11,[14]=11,[15]=16,[16]=56,[17]=8} function getRandomClothes(clothesType) if (not clothesType) or (type(clothesType) ~= "number") or (not clothesCJ[clothesType]) then outputDebugString("Error in syntax!", 2) return false end math.randomseed(getTickCount()) return math.random(0, clothesCJ[clothesType]) end
  12. Good luck creating a vehicle an account - because it makes no sense, and therefore you shouldn't be advising people with incorrect methods of doing something. You can add a secondary color to a vehicle with setVehicleColor. It takes in four branches of parameters (red, green, blue, red, green, blue, red, green, blue, red, green, blue), alternatively you can give it a GTA default color with the color IDs (0-126). You can use XML storage for saving as well, though I'd recommend using what Madex referred to earlier, the SQL database.
  13. You can use the getValidPedModels function to get all the valid ones.
  14. And I advice you not to post on the Scripting section in hopes of helping someone since you can't even recognize a small typographical mistake in a line of code. Congratulations. @Kaasis: You have tocoler spelled wrong, it's supposed to be tocolor. Client-side local x, y = guiGetScreenSize() addEventHandler("onClientHUDRender", root, function() dxDrawRectangle(x-200, 0, 200, 200, tocolor(0, 0, 0, 125)) end )
  15. Not really. It's not possible due to the limitations of GTA and MTA haven't enabled a feature for toggling that yet (not sure if it's even possible, probably is). You have to move your map closer to the map in order to have damage enabled.
  16. That's not what he's looking for. He wants to blur something real-time.
  17. Indeed you can do it with shaders. You can use the horizontal and vertical blur effect shaders found from a couple shader resources. That will get you started on it.
  18. In case there is someone else that wants this done more quicker than doing showPlayerHudComponent each time for every individual component, just use the code below. showPlayerHudComponents ( player playerSource, bool status, string component, ... ) local components = {["ammo"]=true, ["area_name"]=true, ["armour"]=true, ["breath"]=true, ["clock"]=true, ["health"]=true, ["money"]=true, ["radar"]=true, ["vehicle_name"]=true, ["weapon"]=true, ["radio"]=true, ["wanted"]=true, ["crosshair"]=true, ["all"]=true} function showPlayerHudComponents(playerSource, status, ...) local args = {...} if (not playerSource) or (type(status) ~= "boolean") or (not ...) or (not args) then outputDebugString("Improper amount of arguments passed in (min. 3)", 1) return false end if (not isElement(playerSource)) then outputDebugString("Invalid player element passed in, got \"" .. type(playerSource) .. "\".", 1) return false end if (type(status) ~= "boolean") then outputDebugString("Argument 2 is not a boolean value, instead \"" .. tostring(status) .. "\".", 1) return false end for index,value in ipairs(args) do local value = tostring(value) if (not components[value]) then outputDebugString("Incorrect HUD component value entered \"" .. value .. "\" on argument " .. index .. ".", 1) return false end showPlayerHudComponent(playerSource, value, status) end return true end In action it would work like this: showPlayerHudComponents(getPlayerFromName("playername"), false, "radar", "money", "breath", "health", "clock")
  19. It's made with PHP's image functions. http://www.php.net/manual/en/book.image.php
  20. All I've experienced in SA-MP so far is the same font on each server and deathmatchers as well as 7/10 of the playerbase are cheaters of some form. In addition to that, SA-MP scripting is so limited that I couldn't do most of the things I've done here so far. MTA is better in each way. In SA-MP you get updates twice a year. In MTA you get updates every day.
  21. myonlake

    help

    It's in the same function category as setTimer. Would've not been so hard to find it yourself and read a little bit, but here you go; https://wiki.multitheftauto.com/wiki/GetTimerDetails.
  22. You won't need to do a re-install at all. You can just fake your device serials by searching on Google for help. Sadly that's just too easy to do nowadays.
  23. Please read what we have replied before you go ahead and reply. You've just repeat exactly the same things as ccw and I posted here.
  24. Because you've disabled all the anti-cheat detections: <disableac>1,4,5,6,7,8,11,13,17,21,26</disableac> Should be: <disableac></disableac>
×
×
  • Create New...