Jump to content

HUNGRY:3

Members
  • Posts

    395
  • Joined

  • Last visited

Everything posted by HUNGRY:3

  1. HUNGRY:3

    gang system

    hello i want to make gang system but idk how to make all gangs visible in the grid list and how to get all players in the gang if they are offline ! just give me example thanks.
  2. No, just lived there for a few months Then why your location is Muscat :c?
  3. this gay addCommandHandler("sg", function(sourcePlayer, command, value) setGameSpeed(tonumber(value)) outputChatBox('GameSpeed = '.. tonumber(value)..' by ' .. getPlayerName(sourcePlayer),root, 0, 240, 0 ) end )
  4. addCommandHandler("sg", function(sourcePlayer, command, value) setGameSpeed(tonumber(value)) outputChatBox('GameSpeed = '.. tonumber(value)..' . ' ,sourcePlayer, 0, 240, 0 ) end )
  5. idk but java is awesome :3
  6. Save it using setAccountData try server side function save() local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then local winspoints = (getElementData(playeraccount,"wins") or 0 ) setAccountData(playeraccount,"wins",winspoints) end end addEventHandler("onPlayerQuit",root,save) function putlogin(_, playeraccount) if ( playeraccount ) then local playerwins = getAccountData ( playeraccount, "wins" ) if ( playerwins ) then setElementData(playeraccount,"wins",playerwins) end end end addEventHandler("onPlayerLogin",root,putlogin)
  7. To 10000000000 time it's not steal script i swear i find it in google and i make someedit for it link in google? ^-^
  8. Hi you're from oman? @ab-47
  9. hi i'm trying to spawn clickedElement but it doesn't work! code: client function lxad(button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement) local x, y, z = getElementPosition(localPlayer) local showing = isCursorShowing () if not getElementData(lp,"lxad") == true then if (state ~= 'down') then return end if showing then if ( getElementType ( clickedElement ) == 'player' ) then if getDistanceBetweenPoints3D(x, y, z, worldX, worldY, worldZ)<=5 then local playerHealthC = getElementHealth ( clickedElement ) if playerHealthC == 0 then outputChatBox("You Revived "..getPlayerName(clickedElement).." !",255,0,0) triggerServerEvent("ClientSpawnPlayer",clickedElement) killTimer(setTimerOnWasted) end end end end end end addEventHandler ( 'onClientClick', root,lxad) server: function spawnrevive(clicked) local x,y,z = getElementPosition(clicked) spawnPlayer(clicked,x,y,z) end addEvent("ClientSpawnPlayer",true) addEventHandler("ClientSpawnPlayer",root,spawnrevive)
  10. look at the examples https://wiki.multitheftauto.com/wiki/GetTimerDetails
  11. HUNGRY:3

    Help

    okay... i added output when clicking a player but it output 2 times ._.
  12. GUIEditor = { gridlist = {}, window = {}, button = {} } function openLimoVeh() GUIEditor.window[1] = guiCreateWindow(683, 306, 305, 359, "Job Vehicle Spawner", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(10, 23, 284, 282, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Vehicles", 0.9) guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "Limo", false, false) GUIEditor.button[1] = guiCreateButton(20, 311, 98, 38, "Spawn Vehicle", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(186, 311, 98, 38, "Close", false, GUIEditor.window[1]) showCursor(true) addEventHandler("onClientGUIClick",getRootElement(),onClickBtnClose) addEventHandler("onClientGUIClick",getRootElement(),onClickBtnSpawnVeh) end addEvent("openLimoVehMenu",true) addEventHandler("openLimoVehMenu",getRootElement(),openLimoVeh) function onClickBtnClose(button,state) if (button == "left" and state == "up") then if (source == GUIEditor.button[2]) then guiSetInputEnabled(false) guiSetVisible(GUIEditor.window[1], false) destroyElement(GUIEditor.window[1]) showCursor(false) removeEventHandler("onClientGUIClick",getRootElement(),onClickBtnClose) end end end function delayed() local vehList = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) if vehList == nil or vehList == false then outputChatBox("You need to select a vehicle!",0,255,255) elseif vehList == "Limo" then local x,y,z = getElementPosition(getLocalPlayer()) local limoJobVeh = createVehicle ( 409, x, y, z + 3 ) warpPedIntoVehicle(getLocalPlayer(),limoJobVeh) end end addEvent("delayedVehSpawn",true) addEventHandler("delayedVehSpawn",getRootElement(),delayed) function onClickBtnSpawnVeh(button,state) if (button == "left" and state == "up") then if (source == GUIEditor.button[1]) then triggerEvent("delayedVehSpawn",getLocalPlayer()) end end
  13. HUNGRY:3

    Help

    it's defined i didn't show my full code sorry but i did screenx,screeny = getCursorPosition()
  14. HUNGRY:3

    Help

    ok this doesn't set the image near the cursor when i click on player ._. function lxad(button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement) local x, y, z = getElementPosition(localPlayer) local showing = isCursorShowing () if showing then if ( getElementType ( clickedElement ) == 'player' ) then if getDistanceBetweenPoints3D(x, y, z, worldX, worldY, worldZ)<=5 then guiSetVisible(CLP.staticimage[1],true) guiSetPosition ( CLP.staticimage[1], screenx, screeny,true ) guiSetText(CLP.label[1],"PlayerName: "..getPlayerName(clickedElement)) setTimer(function()guiSetVisible(CLP.staticimage[1],false)end,5000,0) end end end end addEventHandler ( 'onClientClick', root,lxad)
  15. CreateCol when player enter the col give him +1 https://wiki.multitheftauto.com/wiki/CreateColSphere
  16. don't work. value error . hmm that isn't my code i didn't add that thing at line 5
  17. function wot() guiSetVisible(image,true) -- ONLY IF GUI IMAGE! end addCommandHandler("appear",wot)
  18. Debugscript I'm sure it will say some thing
×
×
  • Create New...