
X-SHADOW
Members-
Posts
721 -
Joined
-
Last visited
Everything posted by X-SHADOW
-
جرب هاذا ’ --------------- 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)
-
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 )
-
Worng TAPL he can use setTimer
-
your object.xml file is worng reinstall you mta
-
You Want the Model id for tattos right ?
-
---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)
-
He Can replace every thing on Cj tattoos and clothes https://wiki.multitheftauto.com/wiki/CJ_Clothes
-
Oh Thank's Alpha for That
-
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
-
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)
-
كم تدفع واسوي السكربت لك خخخ
-
you mean it should be like this getPlayerName() ?
-
addEventHandler('onClientPlayerDamage', getLocalPlayer(), function() cancelEvent() end) ---or addEventHandler('onClientPlayerDamage', getLocalPlayer(), function() setElementHealth(source, 100) end)
-
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)
-
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)
-
---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)
-
CX.83 its not wrong see the wiki page event first then the element = source and soucre == player - thePlayer-localPlayer-getLocalPlayer all work.
-
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
-
and onClientResourceStart must use resourceRoot insted of root .
-
طيب ماتشوف كلمة ---Code here ? يعني هو يكمل الباقي ,
-
lol why use givePlayerMoney then takePlayerMoney?
-
probar esta setTimer( function () setElementHealth ( source, ( getElementHealth ( source ) + 15 ) ) end,500,0)