Jump to content

callum123

Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by callum123

  1. Is it possible to make it so you can force a skin to be chosen. Like when a player logs onto a server, their settings, interface, skin can be changed. Since I would like all players to use lighter black if possible when they join the server and then maybe when they logout they can go back to their default setting?
  2. It works, but it flickers which is kind of annoying. Also if you do anything beside click to the image, such and hold and drag the cursor then the image will be on top again.
  3. Yeah, I used that, its just when I reclick on the image, it will bring it back to the front.
  4. So I have an Image inside a GUI window, and I want to make it so that when I click on the image it does nothing, at the minute it will bring it to the front and cover over the buttons.
  5. Right so, DD servers or race or whatever. In the maps for these you have things like: "spawnpoint (Mesa) (1)" vehicle="500" posX="3527.3000488281" posY="-1711.9000244141" posZ="102.90000152588" rotX="0" rotY="0" rotZ="0"> This is all well and good, but what if I want to use over 100 vehicles, do I have to make a new spawn point every single time with the new vehicle, or would there be a way to have like 10 spawnpoints set in the map file and then depending on which random spawnpoint you get, you get a random vehicle. I made this so when you respawn a vehicle is made the other side of the map and then you get warped into it, but its not really what I wanted, and then I tryed to do it so when you spawn, you are in a vehicle and it will change that vehicles model Here was the spawn vehicle code function getCar () theVehicle = createVehicle ( 602, 3, 3, 3 ) vehicles = {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,513, 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,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, 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} vehicleid = tonumber(vehicles[math.random(#vehicles)]) warpPedIntoVehicle(source, theVehicle) setElementModel(theVehicle, vehicleid) end addEventHandler ( "onPlayerSpawn", getRootElement(), getCar ) Obviously I do not want that at all, since if I die (in the car) then i want to return back to a previous spawn point, not 3, 3, 3 like I set it to. Ideal world, would be to set the spawns for every single map in a script and that have it like, if map = blah then spawnpoints = blah. - So would this be possible, or would the spawn points be called from the map file and then the model changed once you spawn?
  6. Thanks, got it all set up
  7. Is there anyway to change the size of the text, or are these six different styles the only fonts available? https://wiki.multitheftauto.com/wiki/Sta ... Font_Names
  8. Hey, I have been trying to unbind tab from the players settings so they cannot use it to fire a weapon. In the MTA settings it is set to Action, and I am not really sure what that does. Trouble is since I have a scoreboard set and that is bound to tab also I am not really sure on how to do it. Since I still want to keep the tab functioning. Since it is probably only like 4 lines, I was wondering if someone could write it for me and then I can look at it, so I know how to do it in the future. I have previously looked around, and always do before I post, to ensure I do not waste anyone's time be repeating information that has already been posted. If anyone is willing to help then I would be very grateful
  9. local char = (getPlayerName(localPlayer)):gsub( "_", " " ) local health = (getElementHealth(localPlayer)) local armor = (getPedArmor(localPlayer)) local money = (getPlayerMoney(localPlayer)) local hour, minute = getTime() function togHud() mainWindow = guiCreateWindow(484,318,308,166,"Multi Theft Auto Roleplay",false) btnClose = guiCreateButton(200,127,100,30,"Close",false,mainWindow) btnNameLabel = guiCreateLabel(15,28,94,16,"Character Name: ",false,mainWindow) btnTimeLabel = guiCreateLabel(14,53,32,16,"Time: ",false,mainWindow) btnHealthLabel = guiCreateLabel(14,77,38,16,"Health: ",false,mainWindow) btnArmorLabel = guiCreateLabel(13,101,38,18,"Armor: ",false,mainWindow) btnMoneyLabel = guiCreateLabel(14,127,42,15,"Money: ",false,mainWindow) btnChar = guiCreateLabel(105,28,169,17," "..char.."",false,mainWindow) btnTime = guiCreateLabel(44,53,70,15," "..hour..":"..minute.."",false,mainWindow) btnHealth = guiCreateLabel(53,78,169,16,"lol",false,mainWindow) btnArmor = guiCreateLabel(49,101,70,19,"lol",false,mainWindow) btnMoney = guiCreateLabel(53,128,112,17,"lol",false,mainWindow) addEventHandler( "onClientGUIClick", btnClose, DestroyGUI, false) end addCommandHandler("hud", togHud) addEventHandler( "onClientRender", getRootElement(), function() if isElement( localPlayer ) then guiSetText ( btnHealth, "" .. math.floor( getElementHealth(localPlayer ) ) ) guiSetText ( btnArmor, "" .. math.floor( getPedArmor( localPlayer ) ) ) guiSetText ( btnMoney, "" .. math.floor( getPlayerMoney( localPlayer ) ) ) end end ) function DestroyGUI() guiSetVisible(mainWindow, false) end Errors on line 27, 28, 29: Bad argument @ 'guiSetText' [Expected gui-element at argument 1, got nil Been having a look around and still cannot see what I am doing particularly wrong, I check the MTA for this, and the example was not the greatest.
  10. Thanks very much for your help. I am now going to read a little bit more about the 'getPropagated', so I can learn from my mistakes
  11. Alright thanks, I fixed that Why does the GUI close when I click anywhere on the 'mainWindow'?
  12. I am new to scripting and have given it a try and I am trying to make a simple GUI script but I have a few errors and I am not sure why. The script may be completely wrong, but at least I am giving it a shot right? I am trying to create a simple GUI thing, where you click on the box and then the picture of what the wheel looks like will appear below as an image. I would like to make it so some is client side and some is server side, but not really sure how and for the cursor to appear when the GUI opens I have these following errors when I click anywhere in the GUI it closes for some reason I have to run the GUI once and press close and then start it up again for the pictures to actually change Debug errors: WARNING: Wheels\Wheels.lua:6: Bad argument @ 'addEventHandler' [Expected function at argument 3, got nil] The errors are on every next sixth line of code after, so the problem is in all of them -Lua Deleted Would really appreciate a little bit of help, thanks
  13. callum123

    Interiors

    I really need help on interiors. How can I make a teleport? from one place to an interior?. I have a house system to make houses. But how do I make teleport outside somewhere like city hall to the Planning Dept interior?. I have tried editing the Interiors Resource, but I really do not know where to start. Thanks. I have looked at this https://wiki.multitheftauto.com/wiki/Resource:Interiors And tried But by putting in my own values for Planning Dept, then I started my server, and there were no teleports? This Is what I tried, I only changed the file interiors.map of the interior resource zip. Do I need to change anything else to make it work? Or do I need a marker in Map Editor?
  14. CAN YOU PLEASE JUST REPLY IF YOU KNOW HOW TO DO ANY OF THESE, THANKS. I need help on making a roleplay server! These are the following things I need help on. How on the game brower make my gametype a 'Roleplay' type? How to sort out interiors? - How to make a teleport which makes me go from one place in the map to an interior? How can I set up jobs which give people money? How to make a character selection screen. Once the person has picked the skin, they cannot change clothes unless they buy them from Binco. How to set it up so Cars run out of fuel and need refilling from a petrol station. How to add the people which you can click on and have a GUI from them. How to have the feature where you can click on objects. How to get rid of the FR GUI when I press the F1 button. How to make vehicles and houses have ownership. E.g. when a person buys a vehicle they keep it, unless they sell it. How can I set up preset binds for whole server like entering vehicles pressing F or enter, and passenger side G. How to add blips and Icons the the map when I press F11. How can I have an inventory for my player, so I can store keys and items. Also when I am a car how can I set a spawnpoint for that vehicle so it spawns there. How to set up a key function so I can lock and unlock cars/houses?. IF ANYONE HAS THE RESOURCES FOR THESE, COULD YOU PLEASE TELL ME THE DOWNLOAD LINK? OR WE CAN SET SOME WAY UP FOR YOU TO SEND ME THEM OVER MSN MESSENGER? PLEASE JUST ANSWER AS MANY AS YOU CAN, THANKS
  15. I have opened the ports exactly what Jamie_Mews has done, and also forwarded port 22005. Does it matter about having a static IP? When I search my server, it does not appear in the server browser, I have to manually tell my friends my IP for them to be able to join, and they still cannot download resources. My friends also cannot see my server in the lists.
  16. Does the protocol for opening the ports still have to be the same as on that website Jamie_Mews posted? UDP first then TCP Because I am having the exact same problem
×
×
  • Create New...