-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
marker = createMarker(-2376.4399414963, 909.61828613281, 44.4453125, "cylinder", 2, 255, 255, 0, 255) blip = createBlip(-2376.4399414963, 909.61828613281, 44.4453125, 45) function buy(id) if (getPlayerMoney(source) >= 200) then takePlayerMoney(source, 200) setElementModel(source, id) setAccountData(getPlayerAccount(source), "standardskin", id) else outputChatBox("You don't have money", source, 255,255,255,true) end end addEvent("useSkin",true) addEventHandler("useSkin", root, buy) function guishow(hitPlayer) triggerClientEvent(hitPlayer, "guishowc", hitPlayer) end addEventHandler("onMarkerHit", marker, guishow)
-
setClipboard أيش دخل showChat بـ ؟؟؟ أكواد غريبه عجيبه
-
مافيه أفنت بس فيه فنكشن عن طريقة تقدر تعرف إذا كان في شي قريب منك أو لا isLineOfSightClear بس هذي صعبه ودقيقة للاستعمال على مبتدئ ذي مشكلته مهي مشكلتنا إذا ما يتعلم ما راح يقدر يسوي شي غير كوبي بست و على الشوبات الي كل شوي واحد حاط نفس الكود
-
إذا فكرت تسوي الكود بنفسك بدون ما تسرقه/تاخذه من أي مكان ثاني تعال حط موضوع
-
مافيه أفنت بس فيه فنكشن عن طريقة تقدر تعرف إذا كان في شي قريب منك أو لا isLineOfSightClear
-
This idiot called "sidak" download community resources and then reupload them even without any change. I think he should banned. https://community.multitheftauto.com/index.php?p=profile&id=330154 DONE
-
في سطر 9 أنت حاط قوسين setVehicleRotation (vehicle, rx +180, ry, rz +180)) عدله ليكون كذا setVehicleRotation (vehicle, rx +180, ry, rz +180)
-
مافهمت ايش الي اعطيك طلبت مثال و عطيتك
-
addCommandHandler("gm", function(player, cmd, toWho, amount) local toWho = getPlayerFromName(toWho) local amount = tonumber(amount) if toWho and amount then if getPlayerMoney(player) >= amount then takePlayerMoney(player, amount) givePlayerMoney(toWho, amount) end end end) addCommandHandler("ping", function(player) outputChatBox("Your ping is: "..tostring(getPlayerPing(player)), player, 255,255,255) end)
-
كيف يعني جاهزه يعني ابيها جاهزه "أيش تقصد بكلمة "جاهزه
-
تابل ابي الاكواد جاهزه لاهنت كيف يعني جاهزه
-
getPlayerMoney takePlayerMoney givePlayerMoney getPlayerPing
-
Aren't you mean that you have a grid list where it has skin ids and when you click on it, it will set the skin to show you, but if you decided to cancel and close the window, you want the old skin back?
-
Event: onClientGUIClick -- when he open the gridList getElementModel -- get his current skin setElementData -- save the skin id as element data Event: onClientGUIClick -- when he click on button "yesOut" getElementData -- get the skin id from the element data that you have save it when the gridList opened setElementModel -- set the skin back
-
addCommandHandler("buy", function(player, cmd, what) if what == "nitro" then if (getPlayerMoney(player) >= 3000) then local vehicle = getPedOccupiedVehicle(player) if vehicle then takePlayerMoney(player,3000) local name = getPlayerName(player) addVehicleUpgrade(vehicle, 1010) outputChatBox("[ #0000ff"..name.." #ffffff] #007fffhas bought [ #ffff00Nitro #007fff]", player, 255,255,255,true) else outputChatBox("You aren't in vehicle!", player, 255,0,0,true) end else outputChatBox("You Dont Have [#999999 3,000 #007fff]", player, 0,127,255,true) end end end)
-
أنت ما نسخت الكود كامل ناقص الأند و القوس الي بالأخير أرجع أنسخه كامل
-
addEventHandler("onPlayerWasted", root, function() outputChatBox("Wait 15 seconds.", source, 255, 255, 255, true) local Team = getPlayerTeam(source) if Team then if Team == getTeamFromName("اسم التيم الأول") then setTimer(spawnPlayer, 15000, 1, source, x, y, z) -- التيم الأول x, y, z الأحداثيات الي يعيد فيها elseif Team == getTeamFromName("اسم التيم الثاني") then setTimer(spawnPlayer, 15000, 1, source, x, y, z) -- التيم الثاني x, y, z الأحداثيات الي يعيد فيها end else -- لو كان بدون تيم setTimer(spawnPlayer, 15000, 1, source, x, y, z) -- بدون تيم x, y, z الأحداثيات الي يعيد فيها end end)
-
-- Server Side -- addEventHandler("onPlayerWasted", root, function() outputChatBox("Wait 15 seconds.", source, 255, 255, 255, true) setTimer(spawnPlayer, 15000, 1, source, x, y, z) -- x, y, z الأحداثيات الي يعيد فيها end)
-
It says Resource not found, but the resource is there
TAPL replied to stormchaser206's topic in Scripting
I guess gui.lua is in folder client. change this to -
bindKey(source,"1",down,buyN) source = ?? down = ??
