Jump to content

Blaawee

Members
  • Posts

    857
  • Joined

  • Last visited

Everything posted by Blaawee

  1. Blaawee

    What is bad?

    try this : change the color you want and remember #Make sure it's Server side. addEventHandler ( 'onResourceStart', resourceRoot, function ( res ) local weatherID = getWeather( ); if ( weatherID == 9 ) then setSkyGradient( 255, 255 ,255, 255, 255 ,255 ); else resetSkyGradient( ); end end );
  2. Blaawee

    What is bad?

    setSkyGradient ( topRed, topGreen, topBlue, bottomRed, bottomGreen, bottomBlue ) #Optional Arguments : - topRed: The red value of the upper part of the sky, from 0 to 255. - topGreen: The green value of the upper part of the sky, from 0 to 255. - topBlue: The blue value of the upper part of the sky, from 0 to 255. - bottomRed: The red value of the lower part of the sky, from 0 to 255. - bottomGreen: The green value of the lower part of the sky, from 0 to 255. - bottomBlue: The blue value of the lower part of the sky, from 0 to 255.
  3. Blaawee

    Question

    you can use tables or elements data getElementData setElementData
  4. setElementData ( source, "ID", 5 ) المتحدث الرسمي ؟ =)
  5. مو كانه مود هولستن ! lbl_wheel__ = guiCreateLabel( 213, 238, 119, 17, "By HoLsTeN", false, Window_Wheel )
  6. ودي اعرف وش الكود اللي استخدمته عشآن يشتغل معآك المود , عشآن مستقبلا لا حد سال شلون يسوي ريموف تلقآئي نفيده =)
  7. 'onClientMapStarting' isn't a custom race event ? try to add : addEvent( 'onClientMapStarting', true )
  8. for me i wont trust in anybody, it must be there some pictures or private server to see the scripts in action.
  9. حآولت اسويهآ بس مم عندي اللعبه عشآت اجربهآ جرب كذآ : server: local gHandles = { --[ 'Property' ] = Value [ 'maas' ] = 1.0, [ 'turnMass' ] = 0.0, }; addEventHandler ( 'onResourceStart', resourceRoot, function( resource ) veh = createVehicle ( 432, x, y, z ); for Property, Value in ipairs ( gHandles ) do setVehicleHandling( veh, Property, Value ); end end )
  10. server: addEventHandler ( 'onPlayerDamage', root, function ( attacker, weapon ) if attacker and getElementType ( attacker ) == 'player' and weapon == 41 then cancelEvent ( ) local health = getElementHealth ( source ) if ( health < 99 ) then setElementHealth ( source, health + 1 ) else outputChatBox( 'He is in a good condition', attacker, 255, 0, 0, true ) end end end )
  11. 'onResourceStart' Parameters resource ( startedResource )
  12. Blaawee

    dxGUI

    looks like you didn't get me . It won't work.Because some functions gets extra parameters.Like getThisResource().I could make if control, but it will be longer.Because I do definitions with Regex.Only 2 line
  13. Blaawee

    dxGUI

    but some functions has an required argument like the first argument ( resource ), how you gona handle that.
  14. createColCircle isElementWithinColShape createObject moveObject bindKey -- #Events: onColShapeHit onColShapeLeave لو صعب عليكك ابحث على موآضيع قديمه تحصل
  15. createColCuboid ( float fX, float fY, float fZ, float fWidth, float fDepth, float fHeight ) fX: The X position of the collision cuboid's western side fY: The Y position of the collision cuboid's southern side fZ: The Z position of the collision cuboid's lowest side ^ ابعآد ثلاثيه يعني موقعهآ وين تكون في اللعبه fWidth: The collision cuboid's width > عرض الشكل fDepth: The collision cuboid's depth > عمق الشكل fHeight: The collision cuboid's height > ارتفآع الشكل
  16. local gScreenSize = { guiGetScreenSize( ) }; local gOffest = 0.4; local gIconWidth = 0.35 * gScreenSize[ 1 ]; local gHconHalfWidth = gIconWidth / 2; function renderTheHeadImg( ) for _, players in ipairs( getElementsByType( 'player' ) ) do while true do if not isElementOnScreen( players ) then break end local headX, headY, headZ = getPedBonePosition( players, 8 ); headZ = headZ + gOffest; local absX, absY = getScreenFromWorldPosition ( headX, headY, headZ ); if not absX or not absY then break end local camX, camY, camZ = getCameraMatrix( ); if not isLineOfSightClear ( camX, camY, camZ, headX, headY, headZ, true, false, false, true, false, true, false, players ) then break end dxDrawImages( absX, absY, 'img/1.png', tocolor( 255, 255, 255, 255 ), getDistanceBetweenPoints3D( camX, camY, camZ, headX, headY, headZ ) ); break end end end function dxDrawImages ( posX, posY, iconPath, color, distance ) distance = 1 / distance; dxDrawImage ( posX - gHconHalfWidth * distance, posY - gHconHalfWidth * distance, gIconWidth * distance, gIconWidth * distance, iconPath, 0, 0, 0, color, false ); end addEventHandler ( 'onClientGUIClick', guiRoot, function( button, state, absoluteX, absoluteY ) if ( source == B1 ) then addEventHandler( 'onClientRender', root, renderTheHeadImg ); end end ) اذا تبي تلغيهآ استخدم removeEventHandler( 'onClientRender', root, renderTheHeadImg );
  17. Blaawee

    dxGUI

    no it's not , it has an export functions : --[[ Exports ]]-- --[[ Shared ]]-- local dx = exports.dxGUI function dxCreateRootPane(...) return dx:dxCreateRootPane(...) end function dxGetRootPane(...) return dx:dxGetRootPane(...) end function dxRefreshThemes(...) return dx:dxRefreshThemes(...) end function dxGetTheme(...) return dx:dxGetTheme(...) end function dxGetDefaultTheme(...) return dx:dxGetDefaultTheme(...) end function dxGetPosition(...) return dx:dxGetPosition(...) end function dxGetSize(...) return dx:dxGetSize(...) end function dxGetVisible(...) return dx:dxGetVisible(...) end function dxGetElementTheme(...) return dx:dxGetElementTheme(...) end function dxGetFont(...) return dx:dxGetFont(...) end function dxGetColor(...) return dx:dxGetColor(...) end function dxGetColorCoded(...) return dx:dxGetColorCoded(...) end function dxGetText(...) return dx:dxGetText(...) end function dxGetAlpha(...) return dx:dxGetAlpha(...) end function dxSetPosition(...) return dx:dxSetPosition(...) end function dxSetSize(...) return dx:dxSetSize(...) end function dxSetVisible(...) return dx:dxSetVisible(...) end function dxSetElementTheme(...) return dx:dxSetElementTheme(...) end function dxSetFont(...) return dx:dxSetFont(...) end function dxSetColor(...) return dx:dxSetColor(...) end function dxSetColorCoded(...) return dx:dxSetColorCoded(...) end function dxSetText(...) return dx:dxSetText(...) end function dxSetAlpha(...) return dx:dxSetAlpha(...) end function dxMove(...) return dx:dxMove(...) end function dxRefreshStates(...) return dx:dxRefreshStates(...) end function dxRefreshClickStates(...) return dx:dxRefreshClickStates(...) end function guiAttachToDirectX(...) return dx:guiAttachToDirectX(...) end function dxGetAlwaysOnTop(...) return dx:dxGetAlwaysOnTop(...) end function dxSetAlwaysOnTop(...) return dx:dxSetAlwaysOnTop(...) end function dxGetZOrder(...) return dx:dxGetZOrder(...) end function dxSetZOrder(...) return dx:dxSetZOrder(...) end function dxBringToFront(...) return dx:dxBringToFront(...) end function dxMoveToBack(...) return dx:dxMoveToBack(...) end function dxDestroyElement(...) return dx:dxDestroyElement(...) end function dxDestroyElements(...) return dx:dxDestroyElements(...) end --[[ Button ]]-- function dxCreateButton(...) return dx:dxCreateButton(getThisResource(),...) end function dxButtonRender(...) return dx:dxButtonRender(...) end --[[ Checkbox ]]-- function dxCreateCheckBox(...) return dx:dxCreateCheckBox(getThisResource(),...) end function dxCheckBoxGetSelected(...) return dx:dxCheckBoxGetSelected(...) end function dxCheckBoxSetSelected(...) return dx:dxCheckBoxSetSelected(...) end function dxCheckBoxRender(...) return dx:dxCheckBoxRender(...) end --[[ Label ]]-- function dxCreateLabel(...) return dx:dxCreateLabel(getThisResource(),...) end function dxLabelGetScale(...) return dx:dxLabelGetScale(...) end function dxLabelGetHorizontalAlign(...) return dx:dxLabelGetHorizontalAlign(...) end function dxLabelGetVerticalAlign(...) return dx:dxLabelGetVerticalAlign(...) end function dxLabelSetScale(...) return dx:dxLabelSetScale(...) end function dxLabelSetHorizontalAlign(...) return dx:dxLabelSetHorizontalAlign(...) end function dxLabelSetVerticalAlign(...) return dx:dxLabelSetVerticalAlign(...) end function dxLabelRender(...) return dx:dxLabelRender(...) end --[[ Progressbar ]]-- function dxCreateProgressBar(...) return dx:dxCreateProgressBar(getThisResource(),...) end function dxProgressBarGetProgress(...) return dx:dxProgressBarGetProgress(...) end function dxProgressBarGetProgressPercent(...) return dx:dxProgressBarGetProgressPercent(...) end function dxProgressBarGetMaxProgress(...) return dx:dxProgressBarGetMaxProgress(...) end function dxProgressBarSetProgress(...) return dx:dxProgressBarSetProgress(...) end function dxProgressBarSetProgressPercent(...) return dx:dxProgressBarSetProgressPercent(...) end function dxProgressBarSetMaxProgress(...) return dx:dxProgressBarSetMaxProgress(...) end function dxProgressBarRender(...) return dx:dxProgressBarRender(...) end --[[ Radio button ]]-- function dxCreateRadioButton(...) return dx:dxCreateRadioButton(getThisResource(),...) end function dxRadioButtonGetSelected(...) return dx:dxRadioButtonGetSelected(...) end function dxRadioButtonGetGroup(...) return dx:dxRadioButtonGetGroup(...) end function dxRadioButtonSetSelected(...) return dx:dxRadioButtonSetSelected(...) end function dxRadioButtonSetGroup(...) return dx:dxRadioButtonSetGroup(...) end function dxRadioButtonRender(...) return dx:dxRadioButtonRender(...) end --[[ Scrollbar ]]-- function dxCreateScrollBar(...) return dx:dxCreateScrollBar(getThisResource(),...) end function dxScrollBarGetProgress(...) return dx:dxScrollBarGetProgress(...) end function dxScrollBarGetProgressPercent(...) return dx:dxScrollBarGetProgressPercent(...) end function dxScrollBarGetMaxProgress(...) return dx:dxScrollBarGetMaxProgress(...) end function dxScrollBarSetProgress(...) return dx:dxScrollBarSetProgress(...) end function dxScrollBarSetProgressPercent(...) return dx:dxScrollBarSetProgressPercent(...) end function dxScrollBarSetMaxProgress(...) return dx:dxScrollBarSetMaxProgress(...) end function dxScrollBarRender(...) return dx:dxScrollBarRender(...) end --[[ Spinner ]]-- function dxCreateSpinner(...) return dx:dxCreateSpinner(getThisResource(),...) end function dxSpinnerGetPosition(...) return dx:dxSpinnerGetPosition(...) end function dxSpinnerGetMin(...) return dx:dxSpinnerGetMin(...) end function dxSpinnerGetMin(...) return dx:dxSpinnerGetMin(...) end function dxSpinnerSetPosition(...) return dx:dxSpinnerSetPosition(...) end function dxSpinnerSetMin(...) return dx:dxSpinnerSetMin(...) end function dxSpinnerSetMin(...) return dx:dxSpinnerSetMin(...) end function dxSpinnerRender(...) return dx:dxSpinnerRender(...) end --[[ Static Image ]]-- function dxCreateStaticImage(...) return dx:dxCreateStaticImage(getThisResource(),...) end function dxCreateStaticImageSection(...) return dx:dxCreateStaticImageSection(...) end function dxStaticImageGetLoadedImage(...) return dx:dxStaticImageGetLoadedImage(...) end function dxStaticImageGetSection(...) return dx:dxStaticImageGetSection(...) end function dxStaticImageGetRotation(...) return dx:dxStaticImageGetRotation(...) end function dxStaticImageLoadImage(...) return dx:dxStaticImageLoadImage(...) end function dxStaticImageSetSection(...) return dx:dxStaticImageSetSection(...) end function dxStaticImageSetRotation(...) return dx:dxStaticImageSetRotation(...) end function dxStaticImageRender(...) return dx:dxStaticImageRender(...) end --[[ Window ]]-- function dxCreateWindow(...) return dx:dxCreateWindow(getThisResource(),...) end function dxWindowGetTitlePosition(...) return dx:dxWindowGetTitlePosition(...) end function dxWindowGetMovable(...) return dx:dxWindowGetMovable(...) end function dxWindowIsMoving(...) return dx:dxWindowIsMoving(...) end function dxWindowGetTitleVisible(...) return dx:dxWindowGetTitleVisible(...) end function dxWindowSetTitlePosition(...) return dx:dxWindowSetTitlePosition(...) end function dxWindowSetMovable(...) return dx:dxWindowSetMovable(...) end function dxWindowGetTitleVisible(...) return dx:dxWindowGetTitleVisible(...) end function dxWindowGetPostGUI(...) return dx:dxWindowGetPostGUI(...) end function dxWindowSetPostGUI(...) return dx:dxWindowSetPostGUI(...) end function dxWindowRender(...) return dx:dxWindowRender(...) end function dxWindowMoveControl(...) return dx:dxWindowMoveControl(...) end function dxWindowComponentRender(...) return dx:dxWindowComponentRender(...) end --[[ Listbox ]]-- function dxCreateList(...) return dx:dxCreateList(getThisResource(),...) end function dxListClear(...) return dx:dxListClear(...) end function dxListGetSelectedItem(...) return dx:dxListGetSelectedItem(...) end function dxListSetSelectedItem(...) return dx:dxListSetSelectedItem(...) end function dxListGetItemCount(...) return dx:dxListGetItemCount(...) end function dxListRemoveRow(...) return dx:dxListRemoveRow(...) end function dxListAddRow(...) return dx:dxListAddRow(...) end function dxListSetTitleShow(...) return dx:dxListSetTitleShow(...) end function dxListGetTitleShow(...) return dx:dxListGetTitleShow(...) end function dxListRender(...) return dx:dxListRender(...) end --[[ #Exports Parts ]]-- so here an example make it fast if you wana try it just download the resource that from the link i give it to you and change the resource name to : [ dxGUI ] and run it and create another client code with this codes alone --[[ Exports ]]-- --[[ Shared ]]-- local dx = exports.dxGUI function dxCreateRootPane(...) return dx:dxCreateRootPane(...) end function dxGetRootPane(...) return dx:dxGetRootPane(...) end function dxRefreshThemes(...) return dx:dxRefreshThemes(...) end function dxGetTheme(...) return dx:dxGetTheme(...) end function dxGetDefaultTheme(...) return dx:dxGetDefaultTheme(...) end function dxGetPosition(...) return dx:dxGetPosition(...) end function dxGetSize(...) return dx:dxGetSize(...) end function dxGetVisible(...) return dx:dxGetVisible(...) end function dxGetElementTheme(...) return dx:dxGetElementTheme(...) end function dxGetFont(...) return dx:dxGetFont(...) end function dxGetColor(...) return dx:dxGetColor(...) end function dxGetColorCoded(...) return dx:dxGetColorCoded(...) end function dxGetText(...) return dx:dxGetText(...) end function dxGetAlpha(...) return dx:dxGetAlpha(...) end function dxSetPosition(...) return dx:dxSetPosition(...) end function dxSetSize(...) return dx:dxSetSize(...) end function dxSetVisible(...) return dx:dxSetVisible(...) end function dxSetElementTheme(...) return dx:dxSetElementTheme(...) end function dxSetFont(...) return dx:dxSetFont(...) end function dxSetColor(...) return dx:dxSetColor(...) end function dxSetColorCoded(...) return dx:dxSetColorCoded(...) end function dxSetText(...) return dx:dxSetText(...) end function dxSetAlpha(...) return dx:dxSetAlpha(...) end function dxMove(...) return dx:dxMove(...) end function dxRefreshStates(...) return dx:dxRefreshStates(...) end function dxRefreshClickStates(...) return dx:dxRefreshClickStates(...) end function guiAttachToDirectX(...) return dx:guiAttachToDirectX(...) end function dxGetAlwaysOnTop(...) return dx:dxGetAlwaysOnTop(...) end function dxSetAlwaysOnTop(...) return dx:dxSetAlwaysOnTop(...) end function dxGetZOrder(...) return dx:dxGetZOrder(...) end function dxSetZOrder(...) return dx:dxSetZOrder(...) end function dxBringToFront(...) return dx:dxBringToFront(...) end function dxMoveToBack(...) return dx:dxMoveToBack(...) end function dxDestroyElement(...) return dx:dxDestroyElement(...) end function dxDestroyElements(...) return dx:dxDestroyElements(...) end --[[ Button ]]-- function dxCreateButton(...) return dx:dxCreateButton(getThisResource(),...) end function dxButtonRender(...) return dx:dxButtonRender(...) end --[[ Checkbox ]]-- function dxCreateCheckBox(...) return dx:dxCreateCheckBox(getThisResource(),...) end function dxCheckBoxGetSelected(...) return dx:dxCheckBoxGetSelected(...) end function dxCheckBoxSetSelected(...) return dx:dxCheckBoxSetSelected(...) end function dxCheckBoxRender(...) return dx:dxCheckBoxRender(...) end --[[ Label ]]-- function dxCreateLabel(...) return dx:dxCreateLabel(getThisResource(),...) end function dxLabelGetScale(...) return dx:dxLabelGetScale(...) end function dxLabelGetHorizontalAlign(...) return dx:dxLabelGetHorizontalAlign(...) end function dxLabelGetVerticalAlign(...) return dx:dxLabelGetVerticalAlign(...) end function dxLabelSetScale(...) return dx:dxLabelSetScale(...) end function dxLabelSetHorizontalAlign(...) return dx:dxLabelSetHorizontalAlign(...) end function dxLabelSetVerticalAlign(...) return dx:dxLabelSetVerticalAlign(...) end function dxLabelRender(...) return dx:dxLabelRender(...) end --[[ Progressbar ]]-- function dxCreateProgressBar(...) return dx:dxCreateProgressBar(getThisResource(),...) end function dxProgressBarGetProgress(...) return dx:dxProgressBarGetProgress(...) end function dxProgressBarGetProgressPercent(...) return dx:dxProgressBarGetProgressPercent(...) end function dxProgressBarGetMaxProgress(...) return dx:dxProgressBarGetMaxProgress(...) end function dxProgressBarSetProgress(...) return dx:dxProgressBarSetProgress(...) end function dxProgressBarSetProgressPercent(...) return dx:dxProgressBarSetProgressPercent(...) end function dxProgressBarSetMaxProgress(...) return dx:dxProgressBarSetMaxProgress(...) end function dxProgressBarRender(...) return dx:dxProgressBarRender(...) end --[[ Radio button ]]-- function dxCreateRadioButton(...) return dx:dxCreateRadioButton(getThisResource(),...) end function dxRadioButtonGetSelected(...) return dx:dxRadioButtonGetSelected(...) end function dxRadioButtonGetGroup(...) return dx:dxRadioButtonGetGroup(...) end function dxRadioButtonSetSelected(...) return dx:dxRadioButtonSetSelected(...) end function dxRadioButtonSetGroup(...) return dx:dxRadioButtonSetGroup(...) end function dxRadioButtonRender(...) return dx:dxRadioButtonRender(...) end --[[ Scrollbar ]]-- function dxCreateScrollBar(...) return dx:dxCreateScrollBar(getThisResource(),...) end function dxScrollBarGetProgress(...) return dx:dxScrollBarGetProgress(...) end function dxScrollBarGetProgressPercent(...) return dx:dxScrollBarGetProgressPercent(...) end function dxScrollBarGetMaxProgress(...) return dx:dxScrollBarGetMaxProgress(...) end function dxScrollBarSetProgress(...) return dx:dxScrollBarSetProgress(...) end function dxScrollBarSetProgressPercent(...) return dx:dxScrollBarSetProgressPercent(...) end function dxScrollBarSetMaxProgress(...) return dx:dxScrollBarSetMaxProgress(...) end function dxScrollBarRender(...) return dx:dxScrollBarRender(...) end --[[ Spinner ]]-- function dxCreateSpinner(...) return dx:dxCreateSpinner(getThisResource(),...) end function dxSpinnerGetPosition(...) return dx:dxSpinnerGetPosition(...) end function dxSpinnerGetMin(...) return dx:dxSpinnerGetMin(...) end function dxSpinnerGetMin(...) return dx:dxSpinnerGetMin(...) end function dxSpinnerSetPosition(...) return dx:dxSpinnerSetPosition(...) end function dxSpinnerSetMin(...) return dx:dxSpinnerSetMin(...) end function dxSpinnerSetMin(...) return dx:dxSpinnerSetMin(...) end function dxSpinnerRender(...) return dx:dxSpinnerRender(...) end --[[ Static Image ]]-- function dxCreateStaticImage(...) return dx:dxCreateStaticImage(getThisResource(),...) end function dxCreateStaticImageSection(...) return dx:dxCreateStaticImageSection(...) end function dxStaticImageGetLoadedImage(...) return dx:dxStaticImageGetLoadedImage(...) end function dxStaticImageGetSection(...) return dx:dxStaticImageGetSection(...) end function dxStaticImageGetRotation(...) return dx:dxStaticImageGetRotation(...) end function dxStaticImageLoadImage(...) return dx:dxStaticImageLoadImage(...) end function dxStaticImageSetSection(...) return dx:dxStaticImageSetSection(...) end function dxStaticImageSetRotation(...) return dx:dxStaticImageSetRotation(...) end function dxStaticImageRender(...) return dx:dxStaticImageRender(...) end --[[ Window ]]-- function dxCreateWindow(...) return dx:dxCreateWindow(getThisResource(),...) end function dxWindowGetTitlePosition(...) return dx:dxWindowGetTitlePosition(...) end function dxWindowGetMovable(...) return dx:dxWindowGetMovable(...) end function dxWindowIsMoving(...) return dx:dxWindowIsMoving(...) end function dxWindowGetTitleVisible(...) return dx:dxWindowGetTitleVisible(...) end function dxWindowSetTitlePosition(...) return dx:dxWindowSetTitlePosition(...) end function dxWindowSetMovable(...) return dx:dxWindowSetMovable(...) end function dxWindowGetTitleVisible(...) return dx:dxWindowGetTitleVisible(...) end function dxWindowGetPostGUI(...) return dx:dxWindowGetPostGUI(...) end function dxWindowSetPostGUI(...) return dx:dxWindowSetPostGUI(...) end function dxWindowRender(...) return dx:dxWindowRender(...) end function dxWindowMoveControl(...) return dx:dxWindowMoveControl(...) end function dxWindowComponentRender(...) return dx:dxWindowComponentRender(...) end --[[ Listbox ]]-- function dxCreateList(...) return dx:dxCreateList(getThisResource(),...) end function dxListClear(...) return dx:dxListClear(...) end function dxListGetSelectedItem(...) return dx:dxListGetSelectedItem(...) end function dxListSetSelectedItem(...) return dx:dxListSetSelectedItem(...) end function dxListGetItemCount(...) return dx:dxListGetItemCount(...) end function dxListRemoveRow(...) return dx:dxListRemoveRow(...) end function dxListAddRow(...) return dx:dxListAddRow(...) end function dxListSetTitleShow(...) return dx:dxListSetTitleShow(...) end function dxListGetTitleShow(...) return dx:dxListGetTitleShow(...) end function dxListRender(...) return dx:dxListRender(...) end --[[ #Exports Parts ]]-- local core = { Window = { }; Button = { }; }; local screenSize = { guiGetScreenSize( ) }; function centerDxWindow( dxElement ) local width, height = dxGetSize( dxElement, false ); local x, y = screenSize[ 1 ] / 2 - width / 2, screenSize[ 2 ] / 2 - height / 2; dxSetPosition( dxElement, x, y, false ) end addEventHandler( 'onClientResourceStart', resourceRoot, function( ) core.Window[ 'MainWindow' ] = dxCreateWindow( 0, 0, 500, 500, 'Main Window', tocolor( 255, 255, 255, 255 ), 'default', 'Orange' ); core.Button[ 'LOL' ] = dxCreateButton( 250, 250, 100, 100, 'LOL', core.Window[ 'MainWindow' ], tocolor( 255, 0, 0, 255 ), 'pricedown', 'Orange' ); centerDxWindow( core.Window[ 'MainWindow' ] ); dxSetVisible( core.Window[ 'MainWindow' ], false ) end ) addEventHandler( 'onClientDXClick', root, function( ) if source == core.Button[ 'LOL' ] then for repeating = 1, 10 do playSoundFrontEnd( 30 ); playSoundFrontEnd( 29 ); playSoundFrontEnd( 28 ); end end end ) bindKey( 'F2', 'down', function( ) dxSetVisible( core.Window[ 'MainWindow' ], not dxGetVisible( core.Window[ 'MainWindow' ] ) ) end ); Bind F2 to set the window visible
  18. Blaawee

    dxGUI

    https://community.multitheftauto.com/ind ... ls&id=4871 this one is perfect i tried it before
  19. don't wait for another one to help u , try to fix it by yourself try to depend on yourself search and look for oldest post
  20. original : https://community.multitheftauto.com/ind ... ls&id=3577 stolen: https://community.multitheftauto.com/ind ... ls&id=6382 https://community.multitheftauto.com/ind ... ls&id=6384 DONE
  21. add this in the server side addEvent('onRequestKillPlayer', true) addEventHandler('onRequestKillPlayer', g_Root, function() if checkClient( false, source, 'onRequestKillPlayer' ) then return end local player = source if stateAllowsKillPlayer() then setElementHealth(player, 0) toggleAllControls(player,false, true, false) end end )
  22. i recommend to use last version of the freerom resource and you will find it here http://code.google.com/p/mtasa-resources/downloads/list
×
×
  • Create New...