Jump to content

Anderl

Members
  • Posts

    2,266
  • Joined

  • Last visited

Everything posted by Anderl

  1. Just.. It looks very bad.
  2. Woah, these cables.. Pass them by the other side of the case and rotate the HDD to the other side too, that will help you in temperatures ( guess you know it already ). Btw, what's your GPU model? 6970?
  3. What are you talking about? To open a ZIP file, you can use softwares like WinRAR or 7-Zip. If you mean use it in the server, MTA server already loads ZIP files.
  4. Anderl

    Hey (scripter)

    Simply contact 50p via PM.
  5. Assuming you're using Internet Explorer, take a look at this: http://support.microsoft.com/kb/931850/en-us
  6. Also, would like to see proof of registration of the company since you're using "LLC".
  7. Client side: local GUI_Buttons = {} local GOD_STR = "" local elementID = { [TURISMO_ID] = { type = "vehicle", name = "Turismo", positions = { 17, 80, 130, 59 } }, [HYDRA_ID] = { type = "vehicle", name = "Hydra", positions = { 173, 80, 132, 57 } }, [CHAINSAW_ID] = { type = "vehicle", name = "Chainsaw", positions = { 17, 176, 127, 58 } }, [RPG_ID] = { type = "weapon", name = "RPG", positions = { 163, 176, 138, 53 } }, [NRG500_ID] = { type = "weapon", name = "NRG-500", positions = { 12, 348, 124, 53 } } }; addEventHandler ( "onClientResourceStart", resourceRoot, function() --create window and other GUI elements p_Window = guiCreateWindow ( 0, 274, 331, 493, "V.I.P. Panel", false ); if ( p_Window ) then guiWindowSetSizable ( p_Window, false ); guiSetAlpha ( p_Window, 1 ); guiSetVisible ( p_Window, false ); showCursor ( false ); for index, value in pairs( vehicleID ) do local px, py, width, height = unpack ( value.positions ); GUI_Buttons[index] = guiCreateButton ( px, py, width, height, "Give " .. value.name, false, p_Window ); end --CHECK HERE WHETHER LOCAL PLAYERS GOD MODE IS ENABLED OR NOT AND SET GOD_STR TO "Enable GodMode" or "Disable GodMode" p_Godmode = guiCreateButton ( 10, 268, 129, 54, GOD_STR, false, p_Window ); p_Close = guiCreateButton ( 162, 352, 121, 49, "Close panel", false, p_Window ); --event/command handlers addEventHandler ( "onClientGUIClick", root, GUI_Click, false ); addCommandHandler ( "ovp", GUI_Visible ); end end ) function GUI_Click() for index, value in pairs( GUI_Buttons ) do if ( source == value ) then triggerServerEvent( "panel:createElement", localPlayer, value.type, index ); end end if ( source == p_Godmode ) then --check if god mode is enabled or not and do your things end if ( source == p_Close ) then guiSetVisible( p_Window, false ); showCursor ( false ); end end function GUI_Visible() guiSetVisible ( p_Window, not guiGetVisible( p_Window ) ); showCursor( guiGetVisible( p_Window ) ); end Server side: addEvent ( "panel:createElement", true ); addEventHandler ( "panel:createElement", root, function ( type, id ) if ( type == "vehicle" ) then local px, py, pz = getElementPosition ( source ); if ( px and py and pz ) then warpPedIntoVehicle ( source, createVehicle ( tonumber ( id ), px, py, pz + 2 ) ); end elseif ( type == "weapon" ) then giveWeapon ( source, id, 1, true ); end end ) Didn't test it, just wanted to show you an easier way to do what you want. To add a vehicle/weapon you simply need to do this: 1. Find out "elementID" array ( it's on top of the file ). 2. Between the { } add this: [ MODEL_ID ] = { type = "vehicle/weapon", name = "Name that will appear in the button", positions = { WRITE_HERE_POSX_POSY_WIDTH_HEIGHT_DIVIDED_BY_COMMAS_OF_THE_BUTTONS }, Example: --for vehicle: [411] = { type = "vehicle", name = "Infernus", positions = { 0, 0, 0, 0 } }, --for weapon: [38] = { type = "weapon", name = "Minigun", positions = { 0, 0, 0, 0 } }, P.S. You should look at comments in the code and edit it, otherwise code won't work properly.
  8. You can wait to see if someone is interested, but in my opinion ( and I already passed by that when I didn't know LUA so I know what I am saying ) it's ever better to learn and do the things by yourself. You will know what you did, how is it organized/done and where are the things. If you decide to learn and do the job by yourself, read this topic to learn LUA: viewtopic.php?f=148&t=40809&hilit=Manuals And AFTER you know at least basics of LUA, look at these Wiki pages: https://wiki.multitheftauto.com/wiki/Scr ... troduction https://wiki.multitheftauto.com/wiki/Int ... ng_the_GUI https://wiki.multitheftauto.com/wiki/Debugging https://wiki.multitheftauto.com/wiki/Resources https://wiki.multitheftauto.com/wiki/Writing_Gamemodes
  9. This is too easy, in my opinion it wasn't needed. It was well explained, though.
  10. It's the same code as Samers, just different command name lol
  11. My way is much easier and faster to do than yours. Also, if he ever needed to change/add vehicles, he would simply add to the array.
  12. That doesn't change the time/dedication a person will waste to do things.
  13. Anderl

    Low Fps Plz help me

    What are you talkin about? DDR memory is RAM (The number just indicates which generation, currently DDR3 is the newest I believe). GDDR memory is GPU memory (Where GDDR5 is the newest). You can't plug GDDR3 into a motherboard in the same way that you can't stick DDR3 on a GPU. Well i said DDR5 not GDDR5 learn to read. I know that GDDR stands for Graphics Double Data Rate and DDR simply Double Data Rate The 'G' in GDDR represents something to do with the IC's termination voltage control. The function of that controller allows more stable operation at high speeds, and is not compatible with motherboard (cpu) memory controllers. It's DDR3, not GDDR3. And you most likely copied these things from the Wikipedia and re-wrote them. @Infinate, the latest type is DDR4, it isn't being used yet ( well, it is I guess, but it's still rare to see a system using it ). Intel Haswell CPUs are supposed to come with DDR4 SDRAM support.
  14. Anderl

    Simple Problem FPS

    Again unknown paste ID.
  15. You should have read what Solidsnake14 said to Lloyd Logan and also your code should be better organised, it's a lot boring to add multiple if statements for multiple vehicles and to add multiple events for creating each vehicle. You should make ONLY ONE event to create any vehicle and use arrays.
  16. You have lots of 'end' missing. And your code doesn't make sense. if isPedInVehicle ( thePlayer ) then First you use 'hitElement' and now you're using 'thePlayer'? if ( getElementModel ( source ) == 420 ) then 'source' is the marker. destroyElement( markers [ thePlayer ] ) Again using 'thePlayer'... local vehicle = getPedOccupiedVehicle ( source ) Again using 'source' but 'source' is the marker, not the player. warpPedIntoVehicle ( skins, vehicle, 2 ) Where is 'skins' declared?
  17. Add a handler to the event "onMarkerHit" for each marker and in the function of that event ( "onMarkerHit" ), iterate through 'markers' array and check if the marker that was hit is the one you're checking. Example: for key, value in pairs( markers ) do if ( source == value ) then --your code here end end
  18. There's no way to know if it was hand contact with that event, it just gets triggered when some element hits an object.
  19. Using file functions and triggerClientEvent.
  20. Yes, as people already said, it's possible. And no, we aren't going to do it for you.
  21. If you need to execute the function from other resources, yes. Otherwise no, it's not needed.
×
×
  • Create New...