Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. هذا الي أنت حاطه بالكود function refreshStats() if guiGetVisible(GUIEditor_Image[1]) then guiSetText(GUIEditor_Label[6],getPlayerPing(localPlayer)) guiSetText(GUIEditor_Label[3],"$"..getPlayerMoney()) guiSetText(GUIEditor_Label[1],getPlayerName(localPlayer)) guiSetText(GUIEditor_Label[8],getPlayerSerial()) guiSetText(GUIEditor_Label[4],getElementModel(localPlayer)) end end addEventHandler("onClientRender", root, refreshStats) GUIEditor_Image[1] و المشكلة أن ما عندك أي صورة بأسم ip1 و هنا نفس الشي ما عندك أي ليبل أسمه guiLabelSetColor (ip1,255,255,0,220) وهنا حاط ترقرين ورا بعض كأني شايف الكود ذا من قبل بس مدري وين triggerServerEvent("getIP", getLocalPlayer())triggerServerEvent("ip",localPlayer) و ذا كود السيرفر source و مره تحط thePlayer مره تحط ليه تخبيص هو؟ مرتين في الترقير من الكلينت localPlayer لازم تحط thePlayer إذا تبي تستخدم addEvent("ip",true) function ip(thePlayer) local IP = getPlayerIP(thePlayer) triggerClientEvent(source,"ip", source,IP) end addEventHandler("ip",root,ip)
  2. TAPL

    tigerEvent help

    addEventHandler("onPlayerDamage",getRootElement(), function(attacker,weapon,bodypart,loss) if weapon == 16 then triggerClientEvent ( "onGrenadeEvent", root, "text" ) elseif weapon == 18 then triggerClientEvent ( "onMolotowEvent", root, "text" ) end end )
  3. في الكلينت سطر 107 عندك قوس زايد اسماء المتغيرات عندك كلها مخبوصه شكلك جايب اكواد كوبي بست من مودات ثانية و مركبها على بعض
  4. أيش المشكلة؟
  5. .friendlyName لانه يستخدم معه الـ gang بس أسم الألمنت داتا حقه هو Group عارف أنه يكتب في التاب
  6. https://forum.multitheftauto.com/viewtopic.php?f=91&t=51954
  7. جرب local gangName = getElementData(player, "gang") local colors = exports.gang_system:getGangColor(gangName) local r, g, b = unpack(colors)
  8. أهلاً وسهلا
  9. قصدك ذا https://community.multitheftauto.com/ind ... ls&id=1514 ? تقدر تجيب عصابه اللاعب من الألمنت داتا local gangName = getElementData(player, "gang")
  10. gangs?
  11. ~_~ bindKey('f1','down', function() guiSetVisible(window, not guiGetVisible(window)) showCursor(guiGetVisible(window)) end)
  12. bindKey('f1','down', function() guiSetVisible(window, not guiGetVisible(window)) showCursor(not guiGetVisible(window)) end)
  13. If i understood you correctly, you are trying to make meta for client side scripts which you have download it from another servers while this means that you are trying to steal scripts and you want us to help you, but sorry we not going help you.
  14. TAPL

    [help] again

    What does awaible mean? It's working with me, i don't understand why it doesn't with you. Try change the event name from xxx to anything else. If still not work, then post your server side and client side and meta.
  15. TAPL

    [help] again

    What?
  16. Topic Moved to: Scripting Section.
  17. hunger here return boolean not a number. boolean cannot be compared with numbers. Mostly it return false, where you have set the data? local hunger = getElementData(thePlayer, "hunger")
  18. https://forum.multitheftauto.com/viewtopic.php?f=119&t=52839&start=15#p514399
  19. TAPL

    Help with jail

    Line 23, vehicle is not defined. destroyElement(vehicle)
  20. The source of this event is the vehicle that was entered. function Enter ( thePlayer, seat, jacked ) local id = getElementModel ( source ) if id == 432 then blowVehicle ( source ) end end addEventHandler ( "onVehicleEnter", getRootElement(), Enter )
  21. Maybe onPlayerContact? or You can create Col Shape on the object and use event onColShapeHit.
  22. addEventHandler("onMarkerHit", root, function(elem) if getElementType(elem) == "player" then if (source == marker1) then destroyElement(marker1) marker2= createMarker(1788.9, 871.6, 10.4, "cylinder", 1.5, 255, 255, 255, 255) elseif (source == marker2) then destroyElement(marker2) elseif (source == marker3) then setPlayerMoney(elem, 1) triggerClientEvent(elem, "Ero", elem) end end end)
  23. TAPL

    [help] again

    -- Client Side -- function use() local row, col = guiGridListGetSelectedItem(list) if (row and col and row ~= -1 and col ~= -1) then local model = tonumber(guiGridListGetItemData(list, row, 1)) triggerServerEvent("xxx", localPlayer, model) end end addEventHandler("onClientGUIClick", _use, use, false) -- Server Side -- object = {} addEvent("xxx", true) addEventHandler("xxx", root, function(model) if isElement(object[source]) then destroyElement(object[source]) end local x, y, z = getElementPosition(source) object[source] = createObject(model, x, y, z + 1, 0, 0, 0) attachElements(object[source], source, 0.025, -0.01, 0.815, 0, 0, 180) end) addEventHandler("onPlayerQuit", root, function() if isElement(object[source]) then destroyElement(object[source]) end end)
  24. function showMenu(hitElement) if getElementType(hitElement) == "player" then triggerClientEvent(hitElement, "ShowAmmu", hitElement) end end addEventHandler("onMarkerHit", ammuSell, showMenu)
  25. false?? guiSetInputEnabled(false)
×
×
  • Create New...