Jump to content

Blaawee

Members
  • Posts

    857
  • Joined

  • Last visited

Everything posted by Blaawee

  1. Blaawee

    Cursor

    Sory My Bad CapY
  2. Blaawee

    Cursor

    maybe this work function hidewindow() guiSetVisible(window, false) showCursor(false) end function showwindow() guiSetVisible(window, true) guiBringToFront(window) showCursor(true) end function showhide() if (guiGetVisible(window)) then hidewindow() else Function() showCursor(true) end end bindKey( "F3", "up", showhide)
  3. hi i take the the wiki example and make some change , is this right ?? local chatRadius = 10 function sendMessageToNearbyPlayers( message, messageType ) if messageType == 0 then local posX, posY, posZ = getElementPosition( source ) local chatSphere = createColSphere( posX, posY, posZ, chatRadius ) local nearbyPlayers = getElementsWithinColShape( chatSphere, "player" ) destroyElement( chatSphere ) for index, nearbyPlayer in ipairs( nearbyPlayers ) do outputChatBox( message, nearbyPlayer ) end end end addEventHandler( "onPlayerChat", getRootElement(), sendMessageToNearbyPlayers ) function blockChatMessage() cancelEvent() end addEventHandler( "onPlayerChat", getRootElement(), blockChatMessage ) addEventHandler("onPlayerJoin", root, function() bindKey(source, "u", "down", "chatbox") end )
  4. this resource have alot of command :@
  5. jobs edit 2:) i want press button to change the view to the steer and if i bind it again change the view to the defult
  6. thx guys it's work , what about # 1 , 2 ?
  7. is this right ? addEventHandler("onClientResourceStart",resourceRoot, function () txd = engineLoadTXD ( "bat.txd" ) engineImportTXD ( txd, 336 ) dff = engineLoadDFF ( "bat.dff", 0 ) engineReplaceModel ( dff, 336 ) txd = engineLoadTXD ( "de.txd" ) engineImportTXD ( txd, 348 ) dff = engineLoadDFF ( "de.dff", 0 ) engineReplaceModel ( dff, 348 ) end)
  8. here is my syntex addEventHandler("onClientResourceStart",resourceRoot, function () txd = engineLoadTXD ( "bat.txd" ) engineImportTXD ( txd, 5 ) dff = engineLoadDFF ( "bat.dff", 0 ) engineReplaceModel ( dff, 5 ) end) not work <meta> <script src="replace.lua" type="client" /> <file src="bat.txd" /> <file src="bat.dff" /> </meta>
  9. 1- is there any resource to do jobs in freeroam gamemode with a gui not command ? 2- is there any resource to change the view mode into a car when pressing button ? 3- i have a txd and dff weapon skin , i want to but it in me server how ?
  10. Blaawee

    Requst Help

    like this ?? ----------------- --The Windows ------------------ GUIEditor_Window = {} GUIEditor_Button = {} Shop_Window = guiCreateWindow(135,67,532,481,"Weapon Shop",false) guiSetAlpha(Shop_Window,0.69999998807907) guiWindowSetMovable(Shop_Window,true) guiWindowSetSizable(Shop_Window,false) guiSetVisible (Shop_Window, false) Pistol_popup = guiCreateButton(13,40,199,42,"Handguns",false,Shop_Window) guiSetFont(Pistol_popup,"sa-header") Weapon_popup = guiCreateButton(12,93,204,41,"Assault Rifles",false,Shop_Window) guiSetFont(Weapon_popup,"sa-header") Speical_popup = guiCreateButton(12,143,206,40,"Speical",false,Shop_Window) guiSetFont(Speical_popup,"sa-header") close = guiCreateButton(483,32,22,17,"X",false,Shop_Window) guiSetFont(close,"clear-normal") Pistol_Window = guiCreateWindow(135,67,532,481,"Handguns",false) guiSetAlpha(Pistol_Window,0.69999998807907) guiWindowSetMovable(Pistol_Window,true) guiWindowSetSizable(Pistol_Window,false) --this Buttons to give weapon give_Pistol = guiCreateButton(9,39,204,42,"Pistol",false,Pistol_Window) give_SPistol = guiCreateButton(9,93,204,40,"Silenced Pistol",false,Pistol_Window) give_DEagle = guiCreateButton(9,144,207,41,"Desert Eagle",false,Pistol_Window) Hidep = guiCreateButton(401,442,121,30,"<| Back",false,Pistol_Window) Weapon_Window = guiCreateWindow(135,67,532,481,"Assault Rifles",false) guiWindowSetMovable(Weapon_Window,true) guiWindowSetSizable(Weapon_Window,false) GUIEditor_Button[11] = guiCreateButton(12,43,194,39,"AK-47",false,Weapon_Window) GUIEditor_Button[12] = guiCreateButton(10,92,198,39,"M4",false,Weapon_Window) GUIEditor_Button[13] = guiCreateButton(11,145,198,40,"Weapon 3",false,Weapon_Window) GUIEditor_Button[14] = guiCreateButton(401,442,121,30,"<| Back",false,Weapon_Window) Spiciacl_Window = guiCreateWindow(135,67,532,481,"Spiciacl",false) guiWindowSetMovable(Spiciacl_Window,true) guiWindowSetSizable(Spiciacl_Window,false) GUIEditor_Button[16] = guiCreateButton(290,13,5,5,"",false,Spiciacl_Window) GUIEditor_Button[17] = guiCreateButton(43,44,171,39,"spe 1",false,Spiciacl_Window) GUIEditor_Button[18] = guiCreateButton(44,96,171,39,"spe 2",false,Spiciacl_Window) GUIEditor_Button[19] = guiCreateButton(46,146,170,38,"spe 3",false,Spiciacl_Window) GUIEditor_Button[20] = guiCreateButton(401,442,121,30,"<| Back",false,Spiciacl_Window) bindKey ( "F2" , "down" , function() if ( guiGetVisible ( Shop_Window ) == true ) then guiSetVisible ( Shop_Window ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( Shop_Window ) == false ) then guiSetVisible ( Shop_Window ,true ) showCursor (false ) guiSetInputEnabled(true) end end ) addEventHandler("onClientGUIClick",root, function () if (source == Pistol_popup) then guiSetVisible(Pistol_Window, not guiGetVisible(Pistol_Window)) elseif (source == Weapon_popup) then guiSetVisible(Weapon_Window, not guiGetVisible(Weapon_Window)) elseif (source == Speical_popup) then guiSetVisible(Spiciacl_Window, not guiGetVisible(Spiciacl_Window)) elseif (source == Hidep) then guiSetVisible(Pistol_Window) end end)
  11. Blaawee

    Requst Help

    i didn't got the idea :@
  12. Blaawee

    Requst Help

    thx Solidsnake14 , what about the button <| Back ?
  13. Blaawee

    Requst Help

    hi guys need help in gui i made this graphical user interface ----------------- --The Windows ------------------ GUIEditor_Window = {} GUIEditor_Button = {} Shop_Window = guiCreateWindow(135,67,532,481,"Weapon Shop",false) guiSetAlpha(Shop_Window,0.69999998807907) guiWindowSetMovable(Shop_Window,true) guiWindowSetSizable(Shop_Window,false) guiSetVisible (Shop_Window, false) Pistol_popup = guiCreateButton(13,40,199,42,"Handguns",false,Shop_Window) guiSetFont(Pistol_popup,"sa-header") Weapon_popup = guiCreateButton(12,93,204,41,"Assault Rifles",false,Shop_Window) guiSetFont(Weapon_popup,"sa-header") Speical_popup = guiCreateButton(12,143,206,40,"Speical",false,Shop_Window) guiSetFont(Speical_popup,"sa-header") close = guiCreateButton(483,32,22,17,"X",false,Shop_Window) guiSetFont(close,"clear-normal") Pistol_Window = guiCreateWindow(135,67,532,481,"Handguns",false) guiSetAlpha(Pistol_Window,0.69999998807907) guiWindowSetMovable(Pistol_Window,true) guiWindowSetSizable(Pistol_Window,false) GUIEditor_Button[7] = guiCreateButton(9,39,204,42,"Pistol",false,Pistol_Window) GUIEditor_Button[8] = guiCreateButton(9,93,204,40,"Silenced Pistol",false,Pistol_Window) GUIEditor_Button[9] = guiCreateButton(9,144,207,41,"Desert Eagle",false,Pistol_Window) GUIEditor_Button[10] = guiCreateButton(401,442,121,30,"<| Back",false,Pistol_Window) Weapon_Window = guiCreateWindow(135,67,532,481,"Assault Rifles",false) guiWindowSetMovable(Weapon_Window,true) guiWindowSetSizable(Weapon_Window,false) GUIEditor_Button[11] = guiCreateButton(12,43,194,39,"AK-47",false,Weapon_Window) GUIEditor_Button[12] = guiCreateButton(10,92,198,39,"M4",false,Weapon_Window) GUIEditor_Button[13] = guiCreateButton(11,145,198,40,"Weapon 3",false,Weapon_Window) GUIEditor_Button[14] = guiCreateButton(401,442,121,30,"<| Back",false,Weapon_Window) Spiciacl_Window = guiCreateWindow(135,67,532,481,"Spiciacl",false) guiWindowSetMovable(Spiciacl_Window,true) guiWindowSetSizable(Spiciacl_Window,false) GUIEditor_Button[16] = guiCreateButton(290,13,5,5,"",false,Spiciacl_Window) GUIEditor_Button[17] = guiCreateButton(43,44,171,39,"spe 1",false,Spiciacl_Window) GUIEditor_Button[18] = guiCreateButton(44,96,171,39,"spe 2",false,Spiciacl_Window) GUIEditor_Button[19] = guiCreateButton(46,146,170,38,"spe 3",false,Spiciacl_Window) GUIEditor_Button[20] = guiCreateButton(401,442,121,30,"<| Back",false,Spiciacl_Window) bindKey ( "F2" , "down" , function() if ( guiGetVisible ( Shop_Window ) == true ) then guiSetVisible ( Shop_Window ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( Shop_Window ) == false ) then guiSetVisible ( Shop_Window ,true ) showCursor (false ) guiSetInputEnabled(true) end end ) all i want to do is when i press the button popup a new window e.x. when i press the button (Pistol_popup = guiCreateButton(13,40,199,42,"Handguns",false,Shop_Window) ) popup Pistol_Window = guiCreateWindow(135,67,532,481,"Handguns",false) and when i press (GUIEditor_Button[10] = guiCreateButton(401,442,121,30,"<| Back",false,Pistol_Window)) hide the window
  14. i have a problem i can't pickup the weapon why ? [solved]
  15. OMG Realy soooory i mean guys plzzz forgive me , my Bad :@ [solved] Thx Guys
  16. thx gays it's work is there any way to check is there any weapon then if getElementType ( thePlayer ) == "player" then takeAllWeapons ( thePlayer ) outputChatBox ( "Your Weapon Has Been Taken", thePlayer, 255, 25, 0, true ) end and other how to make pickup ??
  17. done another problem i can't pick the weapon :@ and how extend the Colshape
  18. o.k done , i want make bilps how ?
  19. How should I take the coordinates of the filed ??
×
×
  • Create New...