Jump to content

X-SHADOW

Members
  • Posts

    721
  • Joined

  • Last visited

Everything posted by X-SHADOW

  1. X-SHADOW

    Codes

    for god sake look in here before make another topic . https://community.multitheftauto.com/ind ... ils&id=202
  2. جرب هاذا ’ --------------- function refreshStats() if guiGetVisible(ENADwindow,true) then guiSetText(moneyLabel,"لديكـ : $"..getPlayerMoney (getLocalPlayer())) else guiSetText(moneyLabel,"ليس لديكـ مال") end end setTimer (refreshStats, 1000, 1) addEventHandler("onClientRender", getRootElement(), refreshStats) ---------------- function updateStatsLabel(mode, map, players, waves) guiSetText(playersLabel,"Players: "..players) end setTimer (updateStatsLabel, 1000, 1) addEvent("updateStats", true) addEventHandler("updateStats", getRootElement(), updateStatsLabel)
  3. addEvent("Jetpack",true) addEventHandler("Jetpack",root, function(player) local PlayerMoney = getPlayerMoney(player)---you must but player or localPlayer if ( PlayerMoney >= 2000) then takePlayerMoney(player,2000) ---you must but player or localPlayer givePedJetPack (player)---you must but player or localPlayer and givePedJetPack not giveWeapon ! local name = getPlayerName(player)---you must but player or localPlayer outputChatBox ( "#ffffff" .. name .. " #ffffff Has Bought JetPack! ...", getRootElement(), 255, 0, 0, true ) else outputChatBox("You don't have $2000 to buy Jetpack", player, 255, 0, 0, true) ---you must but player end end )
  4. your object.xml file is worng reinstall you mta
  5. You Want the Model id for tattos right ?
  6. X-SHADOW

    Help

    ---ClientSide local Toyota = getElementData(localPlayer,'Level') addEventHandler('onClientGUIClick', root, function() if (source == buttonAlterar) then guiSetText(editWanted2, Toyota) triggerServerEvent('onStupidStar',localPlayer) end end) ---serverSide addEvent('onStupidStar', true) addEventHandler('onStupidStar', root, function(player) setPlayerWantedLevel( player, 1) outputChatBox('Wanted Level Has Been Set to 1 !',player,255,255,0) end)
  7. He Can replace every thing on Cj tattoos and clothes https://wiki.multitheftauto.com/wiki/CJ_Clothes
  8. addCommandHandler('cj', root,--- the Command function() addPedClothes ( source, "moto", "moto", 16 )--- you have put the type of the Clothes setElementModel(source,0) -----small edit to make the skin cj outputChatBox('Clothes Changed',255,255,0)--- in ClientSide source not needed end) Read Comments and read this before Make a new topic https://wiki.multitheftauto.com/wiki/AddPedClothes
  9. X-SHADOW

    Problem .

    no problem but the code here we will help you ,
  10. Try This , local housepick = createPickup(x, y, z, 2, 31, 1273, 1) function pickup1 () outputChatBox('You Have Picked up the god damn pickup !',255,255,0) end addEventHandler('onClientPickupHit', housepick, pickup1) addEvent('onClientGUIClick', root, function() if ( source == GUIEditor_Button[1] ) then local x, y, z = getElementPosition(source) end end)
  11. كم تدفع واسوي السكربت لك خخخ
  12. X-SHADOW

    Help

    you mean it should be like this getPlayerName() ?
  13. addEventHandler('onClientPlayerDamage', getLocalPlayer(), function() cancelEvent() end) ---or addEventHandler('onClientPlayerDamage', getLocalPlayer(), function() setElementHealth(source, 100) end)
  14. X-SHADOW

    Help

    That's Weird you dont know how to get the name and set the wanted level ? addEventHandler('onClientGUIClick', root, function() local who = getPlayerName(source) if ( who) then guiSetText(editWanted1, who) end end)
  15. its easy .... this is for my teacher SoldSnake14 function onPlayerQuit() local playerAccount = getPlayerAccount(source) if (playerAccount) and not isGuestAccount(playerAccount) then local playerSkin = getElementModel(source) setAccountData(playerAccount, "skin", playerSkin) end end addEventHandler("onPlayerQuit", getRootElement(), onPlayerQuit) function onPlayerLogin() local playerAccount = getPlayerAccount(source) if (playerAccount) and not isGuestAccount(playerAccount) then local playerSkin = tonumber(getAccountData(playerAccount, "skin")) if (playerSkin) then setElementModel(source, playerSkin) end end end addEventHandler("onPlayerLogin", getRootElement(), onPlayerLogin)
  16. ---ClientSide function new() if ( source == GUIEditor_Button[1] ) then GUIEditor_Window[2] = guiCreateWindow(337,492,346,160,"القوانين",false) guiWindowSetMovable(GUIEditor_Window[2],false) guiWindowSetSizable(GUIEditor_Window[2],false) GUIEditor_Memo[3] = guiCreateMemo(9,23,328,128,"Here admins-HeadAdmins type only",false,GUIEditor_Window[2]) end end addEventHandler('onClientResourceStart', resourceRoot, function() if ( source == GUIEditor_Memo[3] ) then triggerServerEvent('onAdmin',getLocalPlayer() ) end end) addEvent('onAdminFound', true) addEventHandler('onAdminFound', root, function() guiMemoSetReadOnly(GUIEditor_Memo[3], false) end) ---serverSide addEvent('onAdmin', true) addEventHandler('onAdmin', root, function() local me = getAccountName( getPlayerAccount( source ) ) if isObjectInACLGroup('user'..me, aclGetGroup ('Admin')) then triggerClientEvent(source, 'onAdminFound', source ) end end)
  17. CX.83 its not wrong see the wiki page event first then the element = source and soucre == player - thePlayer-localPlayer-getLocalPlayer all work.
  18. X-SHADOW

    fade dxtext

    This is an Example function drawImage() local screenWidth, screenHeight = guiGetScreenSize() image1 = guiCreateStaticImage(screenWidth/2, screenHeight/40,100,100, 'images/one.png', false) Animation.createAndPlay(image1, Animation.presets.guiFadeIn(800)) --- this is what you want? Animation.createAndPlay(image1, Animation.presets.guiPulse(1000)) --- this is what you want? end addEventHandler ( "onClientResourceStart", root, drawImage) and then use arc_ animation script and it well work
  19. X-SHADOW

    Error

    and onClientResourceStart must use resourceRoot insted of root .
  20. طيب ماتشوف كلمة ---Code here ? يعني هو يكمل الباقي ,
  21. X-SHADOW

    stop Car Damage

    lol why use givePlayerMoney then takePlayerMoney?
  22. X-SHADOW

    me ayudarian

    probar esta setTimer( function () setElementHealth ( source, ( getElementHealth ( source ) + 15 ) ) end,500,0)
×
×
  • Create New...