Jump to content

ViRuZGamiing

Members
  • Posts

    1,050
  • Joined

  • Last visited

Everything posted by ViRuZGamiing

  1. Commands, You ment Functions, anyway you'll need these ones. maybe more createVehicle getElementPosition setElementPosition getPlayerMoney setPlayerMoney "or" takePlayerMoney //rather set than take //Maybe some more functions idk
  2. https://community.multitheftauto.com/index.php?p ... ls&id=3361
  3. Yes it's possible, but it will require position tracking.
  4. The calculation in the loop but it'll be easier bcuz you'll need to write the calculation once and not every line
  5. Perhaps a table with all coordinates and then loop through the table and fit them, not tested, should be possible.
  6. It'll be one of these; VENDING VEND_Drink2_P VEND_Drink_P vend_eat1_P VEND_Eat_P VEND_Use VEND_Use_pt2
  7. Yeah, exactly What I needed Thanks! Should've looked on the wiki
  8. Did some research for you, and too bad there isn't a possible way (which is simple), I suggest 2 things. • What i've said before. • What is explained in the link below. Link: https://forum.multitheftauto.com/viewtopic.php?f=91&t=40797
  9. That's something you can change hud wise. if ammo is 1 set the dxDrawText (or what is used) set it as 0.
  10. You can do a check for ammo, if it's 0 then set it too 1 perhaps, except you'll have the problem that will be infinite ammo. but to cancel that you can say on weapon fire cancel if ammo is 1. so he can only shoot when ammo is more then 1.
  11. The point is I need the same as in the Admin Panel, A button when you click on it a scrollpane with all vehicles (named not id's) in it. I'm searching the code and found some lines about it. aTab1.GiveVehicle = guiCreateButton ( 0.71, 0.710, 0.27, 0.04, "Give: "..getVehicleNameFromModel ( aCurrentVehicle ), true, aTab1.Tab, "givevehicle" )
  12. ViRuZGamiing

    [HELP] Please

    But I do not want the server.. I got it on each server.. You can't insert your own setWeather script in every server. so as said above, buy a better pc.
  13. How to make a guiCreateScrollPane with this table in it. local vehicleIDS = { 602, 545, 496, 517, 401, 410, 518, 600, 527, 436, 589, 580, 419, 439, 533, 549, 526, 491, 474, 445, 467, 604, 426, 507, 547, 585, 405, 587, 409, 466, 550, 492, 566, 546, 540, 551, 421, 516, 529, 581, 510, 509, 522, 481, 461, 462, 448, 521, 468, 463, 586, 485, 552, 431, 438, 437, 574, 420, 525, 408, 416, 596, 433, 597, 427, 599, 490, 432, 528, 601, 407, 428, 544, 523, 470, 598, 499, 588, 609, 403, 498, 514, 524, 423, 532, 414, 578, 443, 486, 515, 406, 531, 573, 456, 455, 459, 543, 422, 583, 482, 478, 605, 554, 530, 418, 572, 582, 413, 440, 536, 575, 534, 567, 535, 576, 412, 402, 542, 603, 475, 568, 557, 424, 471, 504, 495, 457, 539, 483, 508, 571, 500, 444, 556, 429, 411, 541, 559, 415, 561, 480, 560, 562, 506, 565, 451, 434, 558, 494, 555, 502, 477, 503, 579, 400, 404, 489, 505, 479, 442, 458} Regards Viruz
  14. ViRuZGamiing

    [HELP] Please

    Then it's easy, just implement setWeather in your code with one of the following weather type found below, https://wiki.multitheftauto.com/wiki/Weather
  15. Same here, didn't read full code but it's wrong on the first sight. Why do you set the visibility of a single button? guiSetVisible(spawnskin, true) spawnskin is the button, or isn't this button attached to a window (gui) + Apart from that you don't have an event for the click addEventHandler("onClientGUIClick", spawnskin, functionName)
  16. Errors on /debugscript 3? Perhaps try using addEventHandler("onClientPlayerJoin", root, functionName)
  17. ViRuZGamiing

    [HELP] Please

    Your FPS isn't affected because the weather, what you mean is your Renders Distance if i'm correct. The radius of map being loaded. I think there's an option too decrease it at the "Video" tab. Regards Viruz
  18. It's updated, I've made it so u can edit vehicles and prices ingame, later on i'll try and make it a dropdown list instead of a edit field where u need to know the id's. regards ViRuZ
  19. Thanks for the suggestion, i'll be working on it as i'm now done with the bug fixes I found.
  20. Isn't this what you're searching for? https://community.multitheftauto.com/index.php?p= ... ils&id=292
  21. The if statement isn't ended [and no 'then' ?(or I don't see how)]... if (isset($_POST["account"]) && isset($_POST["amount"])) nevermind if above is PHP and not LUA
  22. shouldn't this be; if isAclGroup(psource,group) then changed too if isObjectInACLGroup(psource,group) then LUA is case sensitive and I thought that all ACL functions were caps.^ + isAclGroup doesn't exist
  23. Use [LUA] tags and try /debugscript 3 ingame (need to be logged in as admin), then post debug here
  24. How about this? addEventHandler("onPlayerWasted",root, setTimer(function() local chosenSpawnLocation = math.random(1,#spawnLocations) spawnPlayer(source,spawnLocations[chosenSpawnLocation][1],spawnLocations[chosenSpawnLocation][2],spawnLocations[chosenSpawnLocation][3]) fadeCamera(source, true) setCameraTarget(source, source) end, 5000, 1) end)
×
×
  • Create New...