Jump to content

manve1

Retired Staff
  • Posts

    1,283
  • Joined

  • Last visited

Everything posted by manve1

  1. The script is as i told u, the original MTA scoreboard just wit ha new column named 'Medic Kit'. there are more column's, but this is how the script looks from 'dxscoreboard_exports.lua' function scoreboardResetColumns( forElement, thePlayer ) forElement = iif( type( forElement ) == "userdata" and isElement( forElement ), forElement, getRootElement() ) if forElement == getRootElement() then while ( scoreboardColumns[1] ) do table.remove( scoreboardColumns, 1 ) resourceColumns = {} end local result = triggerClientEvent( getRootElement(), "doScoreboardResetColumns", getRootElement() ) if result then scoreboardAddColumn( "name", 200, "Nickname" ) scoreboardAddColumn( "med_kit", 100, "Medic kit" ) setElementData( thePlayer, 'Medic Kit', 'No' ) end return result else return triggerClientEvent( forElement, "doScoreboardResetColumns", getRootElement(), false ) end end I know this is wrong (( because it didn't work )), but it doesn't have any errors. NOTE: This is only a small piece
  2. Could you please tell me in which script i put this in: setElementData( localPlayer, 'Medic Kit', 'No' ) P.S. I am editing the original file.
  3. You can use photoshop to make your own, but if u want to find any Press Here if you see a button called "design" press on it it has loads of disc's for a speed o meter, but with a website url on it, u can photoshop it to take the url off, well, hope this helped you.
  4. will this work for the mta original scoreboard?
  5. how could i use it ? i never tried making stuff with scoreboard, and i need help with the setting column information
  6. Yeh. Something like that, but without numbers just with text (( p.s. the text is: 'yes' or 'no' ))
  7. How can i add text to a column of a scoreboard? Edit: I am using it via client side
  8. there are functions of mysql on mta wiki (( i never used mysql, so i don't know ))
  9. when u close the server it should't save, unless ur using stuff like mysql (( not sure tho ))
  10. returned false at argument 3 line 32
  11. It still looks original although the pic is a lot different
  12. Last thing: How can i make it for a sniper rifle not other weapons?
  13. but how do i use that resource as there is no example, not even a picture
  14. use youtube to find out how to do few things and mta community for scripts
  15. manve1

    Help

    Learn how to script: https://wiki.multitheftauto.com/wiki/Scr ... troduction
  16. I got a problem as it didn't apply the crosshair to any weapon LUA: addEventHandler( "onClientResourceStart", resourceRoot, function() local texture = dxCreateTexture ("hud/aimer.png") local shader = dxCreateShader ( "hud/shader.fx" ) dxSetShaderValue ( shader, "gTexture", texture ) engineApplyShaderToWorldTexture ( shader, "sitem16") end ) SHADER: texture gTexture; technique TexReplace { pass P0 { Texture[0] = gTexture; } } And i need one for weapons like deagle, m4 and a sniper, but for sniper a different crosshair
  17. would you mind giving me an example?
  18. manve1

    Road Rage

    Lol nice miniguns, although i love the GPS system that u can maximize/minimize ur map on radar, useful
  19. I know that, but people don't offten look at the middle or bottom posts, so i just moved it up.
  20. try this: --[[ Author: xXMADEXx, with Castillo's Help File: client.lua type: client Copyright 2012 (c) xXMADEXx --]] function cancelPedDamage ( ) cancelEvent() end addEventHandler ( "onClientPedDamage", getRootElement(), cancelPedDamage ) local police_window = guiCreateWindow(350,205,728,380,"RoG Police Window",false) guiSetVisible(police_window, false) guiSetAlpha(police_window,1) guiWindowSetSizable(police_window,false) local playerList = guiCreateGridList(14,34,699,272,false,police_window) local column = guiGridListAddColumn(playerList,"Name",0.2) local police_closeBTN = guiCreateButton(163,325,416,36,"Close",false,police_window) bindKey("F4", "down", function ( ) name = getTeamName(getPlayerTeam(localPlayer)) if ( name == "Police" ) or ( name == "Military" ) or ( name == "FBI" ) or ( name == "Swat" ) then guiSetVisible(police_window, not guiGetVisible ( police_window )) showCursor(guiGetVisible ( police_window )) if ( guiGetVisible ( police_window ) ) then guiGridListClear ( playerList ) if ( column ) then for id, player in ipairs ( getElementsByType ( "player" ) ) do local row = guiGridListAddRow ( playerList ) local r, g, b = getPlayerNametagColor ( player ) guiGridListSetItemText ( playerList, row, column, getPlayerName ( player ), false, false ) guiGridListSetItemColor ( playerList, row, column, r, g, b ) end end end else guiSetVisible(police_window, false) end end end ) -- Close Button function close() guiSetVisible(police_window, false) showCursor(false) end addEventHandler("onClientGUIClick", police_closeBTN, close)
  21. manve1

    Help... Panel

    By title "help... Panel" I think he meant that he needs help with a Panel
  22. How can i apply my own crosshair so when i aim a gun i see my crosshair?
×
×
  • Create New...