Jump to content

devildead622

Members
  • Posts

    144
  • Joined

  • Last visited

Everything posted by devildead622

  1. you can type /refresh the console
  2. I want to change the name of all arms!
  3. In standard code, the name of the gun that is original game ( getWeaponNameFromID (weaponID) )! I want one that I choose to appear
  4. How can I make certain ids have defined another name? function hud ( ) local x, y = guiGetScreenSize() ammo = getPedTotalAmmo ( getLocalPlayer() ) clip = getPedAmmoInClip ( getLocalPlayer() ) weaponID = getPedWeapon(getLocalPlayer()) weapName = getWeaponNameFromID(weaponID) dxDrawText("#11A737"..weapName.." | "..clip.."/"..ammo,x-(x/2.9), y/33, x, y,tocolor(0,255,255,255),1.5,"clear","left","top",false,false,false,true) if isPedInVehicle (localPlayer) == false then return end Vname = getVehicleName(getPedOccupiedVehicle(localPlayer)) health = getElementHealth (getPedOccupiedVehicle(localPlayer)) sx, sy, sz = getElementVelocity (getPedOccupiedVehicle(localPlayer)) kmhs = math.floor(((sx^2 + sy^2 + sz^2)^(0.5))*180) dxDrawText("#FFFFFFVeiculo: "..Vname,20.0,348.0,296.0,364.0,tocolor(0,255,255,255),0.5,"bankgothic","left","top",false,false,false,true) dxDrawText("#FFFFFFSaude do Veiculo: "..tostring(math.floor(health*0.1)).." %",20.0,368.0,296.0,384.0,tocolor(0,255,255,255),0.5,"bankgothic","left","top",false,false,false,true) dxDrawText("#FFFFFFVelocidade: "..tostring(kmhs).." Km/h",20.0,388.0,296.0,404.0,tocolor(0,255,255,255),0.5,"bankgothic","left","top",false,false,false,true) end addEventHandler("onClientRender",getRootElement(),hud) addEventHandler("onClientPlayerSpawn",getRootElement(),hud) so for example: weapName = if weaponID = 33 --the name will be: Lee Enfield but do not know how to do it
  5. what? @Solid thank you! I will try, if you have problems, come back here!
  6. I could not find, perhaps because it is difficult to find using GOOGLE TRANSLATOR ... if you manage to find me, I thank you ... ^ ^
  7. yes, each TAB corresponds to 1 group
  8. I tried some ways but not able to use properly! You can help-me? How to use?
  9. I made a panel vip by GUIEditor, but I can not open when using this form: (PS: after then I put the functions of each button) GUIEditor = { staticimage = {}, tabpanel = {}, label = {} } function paineldovip(player) local accName = getAccountName ( getPlayerAccount ( player ) ) painelvip = guiCreateWindow(270, 120, 488, 504, "Painel Vip", false) guiWindowSetSizable(painelvip, false) botaofechar = guiCreateButton(641, 124, 107, 15, "Fechar", false) GUIEditor.tabpanel[1] = guiCreateTabPanel(10, 154, 468, 340, false, painelvip) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Vip" ) ) then tabvipbasic = guiCreateTab("Vip Basic", GUIEditor.tabpanel[1]) kitbasic1 = guiCreateButton(12, 10, 439, 15, "Kit Vip 1", false, tabvipbasic) kitbasic2 = guiCreateButton(10, 60, 443, 15, "Kit Vip 2", false, tabvipbasic) kitmedic = guiCreateButton(8, 110, 443, 15, "Kit Vip Medic", false, tabvipbasic) GUIEditor.label[1] = guiCreateLabel(22, 35, 421, 15, "1xMP5 1xCountry Rifle 300xSmg Ammo 20xSniper Ammo", false, tabvipbasic) GUIEditor.label[2] = guiCreateLabel(18, 135, 421, 15, "1xMedic Kit 1xPizza 1xMilk", false, tabvipbasic) GUIEditor.label[3] = guiCreateLabel(20, 85, 421, 15, "1xM4 1xSniper Rifle 300xAssault Ammo 100xSniperr Ammo", false, tabvipbasic) bike = guiCreateButton(10, 160, 443, 15, "Bike Vip", false, tabvipbasic) GUIEditor.label[4] = guiCreateLabel(18, 185, 421, 15, "1xBike", false, tabvipbasic) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "VipGold" ) ) then tabvipgold = guiCreateTab("Vip Gold", GUIEditor.tabpanel[1]) kitgold1 = guiCreateButton(10, 10, 443, 15, "Kit Gold 1", false, tabvipgold) kitgold2 = guiCreateButton(10, 60, 443, 15, "Kit Gold 2", false, tabvipgold) kitmedicogold = guiCreateButton(10, 110, 443, 15, "Kit Medico", false, tabvipgold) kitgolditens = guiCreateButton(6, 160, 443, 15, "Kit Itens", false, tabvipgold) GUIEditor.label[5] = guiCreateLabel(10, 35, 434, 15, "1xMP5 | 1xSniper Amno | 300xSmg Ammo | 20xSniper Ammo", false, tabvipgold) GUIEditor.label[6] = guiCreateLabel(10, 235, 434, 15, "1xBike", false, tabvipgold) GUIEditor.label[7] = guiCreateLabel(10, 185, 434, 15, "1xGPS | 1xMap | 1xToolbox | 1xWatch | 1xRadio Devide", false, tabvipgold) GUIEditor.label[8] = guiCreateLabel(9, 85, 434, 15, "1xM4 | 1xSniper Rifle | 300xAssault Ammo | 100xSniper Ammo", false, tabvipgold) GUIEditor.label[9] = guiCreateLabel(10, 135, 434, 15, "1xMedic Kit | 1xMorphine | 1xPizza | 1xMilk", false, tabvipgold) bikevipgold = guiCreateButton(6, 210, 443, 15, "Bike Vip", false, tabvipgold) elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "VipPremiun" ) ) then tabvippremiun = guiCreateTab("Vip Premiun", GUIEditor.tabpanel[1]) kitpremiunitens = guiCreateButton(10, 260, 448, 15, "Kit Itens", false, tabvippremiun) kitpremiunbolsas = guiCreateButton(10, 210, 448, 15, "Kit Bolsas", false, tabvippremiun) kitpremiunmedico = guiCreateButton(10, 160, 448, 15, "Kit Medico", false, tabvippremiun) kitpremiunsniper = guiCreateButton(10, 110, 448, 15, "Kit Sniper", false, tabvippremiun) kitpremiun2 = guiCreateButton(10, 60, 448, 15, "Kit Premiun 2", false, tabvippremiun) GUIEditor.label[10] = guiCreateLabel(10, 285, 438, 15, "1xGPS | 1xToolbox | 1xMap | 1xWatch | 1xInfrared Google | 1xRadio Devide", false, tabvippremiun) GUIEditor.label[11] = guiCreateLabel(10, 235, 438, 15, "1xAlice Backpack | 1xTent", false, tabvippremiun) GUIEditor.label[12] = guiCreateLabel(10, 185, 438, 15, "1xMedic Kit | 1xMorphine | 1xPizza | 1xMilk", false, tabvippremiun) GUIEditor.label[13] = guiCreateLabel(10, 135, 438, 15, "1xSniper | 1xSniper Skin | 100xSniper Ammo", false, tabvippremiun) GUIEditor.label[14] = guiCreateLabel(10, 85, 438, 15, "1xM4 | 1xSniper Rifle | 300xAssault Ammo | 100xSniper Ammo", false, tabvippremiun) kitpremiun1 = guiCreateButton(10, 10, 448, 15, "Kit Premiun 1", false, tabvippremiun) GUIEditor.label[15] = guiCreateLabel(10, 35, 438, 15, "1xMP5 | 1xSniper Rifle | 300xSmg Ammo | 20xSniper Ammo", false, tabvippremiun) tabvippremiun2 = guiCreateTab("Vip Premiun pagina 2", GUIEditor.tabpanel[1]) kitpremiuindustrial = guiCreateButton(9, 11, 448, 15, "Kit Industrial", false, tabvippremiun2) motopremiun = guiCreateButton(9, 111, 448, 15, "Moto Vip", false, tabvippremiun2) GUIEditor.label[16] = guiCreateLabel(11, 136, 447, 15, "1xSanchez", false, tabvippremiun2) GUIEditor.label[17] = guiCreateLabel(10, 86, 447, 15, "1xBike", false, tabvippremiun2) bikevippremiun = guiCreateButton(10, 61, 448, 15, "Bike Vip", false, tabvippremiun2) GUIEditor.label[18] = guiCreateLabel(9, 36, 447, 15, "1xEngine | 2xTire", false, tabvippremiun2) GUIEditor.staticimage[1] = guiCreateStaticImage(10, 28, 468, 116, ":vip.png", false, painelvip) else outputChatBox ( "#ff0000 Voce nao e um VIP!", player, 255,0,0, true) end end addCommandHandler("painelvip",paineldovip)
  10. wtf? the search of the wiki is very bugged I tried it and not found! but thanks!
  11. if I already are in a vehicle, how to changing the model of it? I looked at the wiki, but not found
  12. createColPolygon (2414.1001, -691, 2324.5, 694, 2321.5, -613.40002, 2387.30005, -609.09998, 2407.6001, -639.79999 ) so? but as set height?
  13. how can I create a Colshape well? the position of the points: 1: 2414.1001, -691, 124.8 2: 2324.5, 694, 131.60001 3: 2321.5, -613.40002, 129.5 4: 2387.30005, -609.09998, 122.9 5: 2407.6001, -639.79999, 125.5
  14. local zone = createColSphere( 1588.1999511719, -1638.5, 15.10000038147, 15.0 ) function shapeHit(hitPlayer, matchingDimension) if getElementType(hitPlayer) == "player" then local v = getPedOccupiedVehicle(pVar) if (v) then removePedFromVehicle ( hitPlayer ) setElementPosition ( v, 1569, -1690, 6 ) warpPedIntoVehicle ( hitPlayer, v ) else setElementPosition( hitPlayer, 1569, -1690, 6 ) end end end addEventHandler( 'onColShapeHit', zone, shapeHit ) Work?
  15. what function to: remove player of vehicle? and teleport the vehicle?
  16. how can I make an "if" for if the player is in a vehicle? and how can I set this vehicle as "ve"
  17. function shapeHit ( thePlayer ) setElementPosition ( thePlayer, 1569, -1690, 6 ) end function setZone ( playerSource ) local zone = createColSphere ( 1588.1999511719, -1638.5, 15.10000038147, 15.0 ) -- create a col addEventHandler ( "onColShapeHit", zone, shapeHit ) -- add a handler for the onColShapeHit event end addEventHandler ( "onResourceStart", setZone ) I suppose this all wrong ... kk so this is I do?
  18. I would have to use this(https://wiki.multitheftauto.com/wiki/CreateColSphere) correct? can give me a help? I'm all confused looking at WIKI ^^
  19. how can I do so that anyone can not pass a given location? for example, do not want anyone approaching this position: 1588.1999511719, -1638.5, 15.10000038147
  20. :C would very, very, very good in a future update mta ...
  21. function(player) setTimer(function(veh, player) destroyElement(veh) setElementData(player, "bike", false) end, 100, 1, veh, player) end) this?
×
×
  • Create New...