Jump to content

arezu

Members
  • Posts

    446
  • Joined

  • Last visited

Everything posted by arezu

  1. use setElementDimension, because setElementAlpha still draws vehicle on screen but draws it "invicible" = bad fps. SetElementDimension doesn't draw vehicle at all (and some other stuff) - as if the vehicle is not there at all = good fps.
  2. arezu

    Gamemods

    If you want to create like in neon, then you can use mapmanager exported function to start different gamemodes - but only one at a time. To create something like tg and ffs server, then you need to recreate every gamemode from start, but unless you are very good at scripting, then you are unable to do that.
  3. The code is mine from a resource i uploaded to community so he didn't steal it. That code is quite a bit different from what you want, i believe you may need to edit race for player to be able to exit vehicle. You can try contact the scripter of "AMG", he made a script which you can use to play deathmatch (with guns - without vehicle) after you died in deathmatch (race - with vehicle).
  4. Wrong....... outputDebugString
  5. arezu

    Resource memory

    Things you have done with loadstring unloads automatically when you stop the resource that used it.
  6. No. You should use "onClientRender" event to get that effect.
  7. arezu

    "Environment"

    Do you mean if you can somehow get which "file" called the function?
  8. Go to your map editor options, last tab and turn off auto map saving. However, in some map editors and servers, you wont have this option...
  9. you are trying to call 'RGBToHEX' while the function is actually called 'RGBToHex'.
  10. function overriding, like i told you on skype.
  11. I dont have 1.3.1 but it works for me. I only downloaded from MTA from front page like 3 weeks ago. Unless the one on front page is 1.3.1 but nobody has said so.
  12. dxDrawText with colorCode support is already added, use it instead because it works much faster.
  13. local camX, camY, camZ, tarX, tarY, tarZ function binds() --client version doesn't have player parameter camX, camY, camZ, tarX, tarY, tarZ = getCameraMatrix() -- isn't this what you want to do? save camera position bindKey("1", "down", cam1) --lua is case-sensitive bindKey("2", "down", cam2) bindKey("3", "down", cam3) bindKey("4", "down", cam4) bindKey("5", "down", cam5) end addCommandHandler("test", binds) function cam1() setCameraMatrix(camX, camY, camZ, tarX, tarY, tarZ) end function cam2() end function cam3() end function cam4() end function cam5() end
  14. You can do this in MTA.. try with setPedAimTarget and maybe also setPedRotation
  15. example: local theString = "Data1 Data2" local data = split(theString, " ") --data[1] is now "Data1" and data[2] is "Data2"
  16. You could make your own script that can read sentences and make a script of it, but the biggest problem is that you cant make advanced scripts like that so its pretty much useless if you want to make awesome scripts.
  17. I've tried it myself, and it seems you cant create water outside "the map" (outside gta world map border), also editing water height doesn't work outside map either.
  18. Cool! I may use this sometime soon.
  19. getPlayerTeam returns the team element so its correct. If you want the team name, you have to do like this: getTeamName(getPlayerTeam(thePlayer))
  20. The problem is probably that the triggerClientEvent is called before the client script is running. Depending on how you want your script to work, you could triggerServerEvent from client, and then in that event server sided, you call your triggerClientEvent("extremo::login::show", source). or, that you forgot that addEvent only has two arguments.
  21. It worked in my server all the time, but its old so, better way instead of setElementAlpha which i do there, is to setElementDimension for the "training" player.
  22. oh, so it returns false when new element data value is same as old, and onClientElementDataChange is not called. Thanks for the help wiki is not clear enough
×
×
  • Create New...