• Announcements

    • jhxp

      Forums are online again after a maintenance.   18/03/17

      MTA Forums maintenance is completed, although some automatic time-heavy tasks are still in process and will be finished eventually in background. Expect some features such as Forum Search to not display all results until all processes are finished. Please let us know if you spot a forum feature that worked correctly before the maintenance but does not work anymore now. Thanks. --MTA Team

Ahmed Ly

Members
  • Content count

    944
  • Joined

  • Last visited

Community Reputation

24 Decent

3 Followers

About Ahmed Ly

  • Rank
    Hoodsta
  • Birthday 27/12/98

Details

  • Gang
    Dragon
  • Location
    Libya

Recent Profile Visitors

1,579 profile views
  1. --Client key = "F3" bindKey(key,"down", function () triggerServerEvent("onPlayerOpenPanel",localPlayer) end ) addEvent("open",true) addEventHandler("open",root, function () if guiGetVisible (Window ) == false then guiSetVisible (Window,true) showCursor(true) playSoundFrontEnd(20) else guiSetVisible (Window,false) showCursor(false) end end ) --Server addEvent("onPlayerOpenPanel",true) addEventHandler("onPlayerOpenPanel",root, function () acc = getPlayerAccount(source) if not isGuestAccount(acc) then if isObjectInACLGroup( "user.".. getAccountName(acc),aclGetGroup ( "Admin" ) ) then triggerClientEvent(source,"open",source) end end end )
  2. setElementData getElementData "onClientPlayerDamage" cancelEvent "onClientGUIClick" guiCheckBoxSetSelected guiCheckBoxGetSelected
  3. addEvent( 'VehiclesSystem;off/onPersonalVehicle', true ) addEventHandler( 'VehiclesSystem;off/onPersonalVehicle', root, function () local theVehicle = getPedOccupiedVehicle (source) -- Check if the player is in any vehicle and if he is the driver if theVehicle and getVehicleController (theVehicle) == source then local state = getVehicleEngineState ( theVehicle ) if state == false then setVehicleEngineState (theVehicle,true) outputChatBox("[Vehicle SySTEM] Engine on ",source,0,255,0,true) else setVehicleEngineState (theVehicle,false) outputChatBox("[Vehicle SySTEM] Engine off ",source,0,255,0,true) end end end )
  4. addEvent( 'VehiclesSystem;off/onPersonalVehicle', true ) addEventHandler( 'VehiclesSystem;off/onPersonalVehicle', root, function switchEngine () local theVehicle = getPedOccupiedVehicle (source) -- Check if the player is in any vehicle and if he is the driver if theVehicle and getVehicleController (theVehicle) == source then local state = getVehicleEngineState ( theVehicle ) if state == false then setVehicleEngineState (theVehicle,true) else setVehicleEngineState (theVehicle,false) end end end )
  5. addEventHandler("onClientGUIClick",root, function () if ( source == guest ) then guiSetVisible(wnd,false) showCursor(false) guiSetInputEnabled(false) setCameraTarget(localPlayer) end end )
  6. addEventHandler("onClientResourceStart",getRootElement(), function () sounds = playSound("song.mp3") setSoundVolume(sounds, 0.5) end ) function stop ( ) if isElement(sounds) then stopSound(sounds) end end addCommandHandler("stopsound",stop)
  7. --Server addEventHandler("onPlayerDamage",root, function (attacker) if attacker and attacker ~= source then if getElementHealth(source) <= 25 then triggerClientEvent(source,"damge",source) end end end ) --Clinet function kill() dxDrawRectangle(0, 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawRectangle(screenW * 0.0000, screenH * 0.0065, screenW * 1.0000, screenH * 0.9870, tocolor(63, 0, 0, 159), false) dxDrawText("You Will Dead", screenW * 0.3469, screenH * 0.8815, screenW * 0.7680, screenH * 0.9206, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) end addEvent("damge",true) addEventHandler("damge",getRootElement(), function () addEventHandler("onClientRender",root, kill) end )
  8. https://wiki.multitheftauto.com/wiki/IsElementMoving
  9. "onClientGUIClick" triggerServerEvent setElementModel
  10. Nice,good job
  11. جرب marker = createMarker (223.19098, 1889.78125, 16.64063, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function(hitplayer) if hitplayer == localPlayer and getElementData(hitplayer, 'Group' ) == 'You Team' then guiSetVisible(W1,true) showCursor(true) end end )
  12. marker = createMarker (223.19098, 1889.78125, 16.64063, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function(hitplayer) if ( hitplayer == localPlayer ) and getElementData(hitPlayer, 'Group' ) == 'You Team' then guiSetVisible(W1,true) showCursor(true) end end )
  13. + getPlayerAccount isGuestAccount
  14. guiCreateCheckBox "onClientGUIClick" guiCheckBoxGetSelected guiSetVisible