xFabel

Members
  • Content Count

    302
  • Joined

  • Last visited

  • Days Won

    1

xFabel last won the day on August 29

xFabel had the most liked content!

Community Reputation

14 Decent

About xFabel

  • Rank
    Prankster

Details

  • Gang
    F.B.I

Recent Profile Visitors

523 profile views
  1. آول شيئ السلام عليكم جآي استفسر علي كيف اسوي دائره تتحرك سويت توبيك نفس ذا الموضوع بس مآ استفدت شيئ مهم انا حين استفسر علي كيف اسوي دائر تتحرك مثل ب صوره كل شيئ واضح ب صوره لحد يقولي استعمل وظيفةdxDrawCircle ترا استخدمته مليون مره وطلع لي شكل زفت مره حاولت اعدل شوي ب شيدرfx بس مالي خبره ب شيدر تكفون حل بالله
  2. i did but not give one avatar pictures for i, player in ipairs(getElementsByType("player")) do local avatar = getElementData(player, "avatarHash") or false if (not loadedTexture[player]) then if avatar then local path = ":avatars/avatarcache/"..avatar if fileExists(path) then loadedTexture[player] = dxCreateTexture(path) else loadedTexture[player] = false end end end end local avatar = loadedTexture[player] or tes.defaultAvatar dxSetShaderValue(tes.maskShader, "imageTexture", avatar) dxDrawImage(x * (1312/sx), y * (722/sy) + offsetY, x * (25/sx), y * (50/sy), tes.maskShader,0,0,0, tocolor(255,255,255,255*toptimes.progress), false) in first code he was giving like this what's wrong?
  3. hey I have a problem in loop between players problem that the picture is repeated and I do not want to be repeated everyone i want one picture how? for i, player in ipairs(getElementsByType("player")) do local avatar = getElementData(player, "avatarHash") or false if (not loadedTexture[player]) then if avatar then local path = "avatars/avatarcache/"..avatar if fileExists(path) then loadedTexture[player] = dxCreateTexture(path) else loadedTexture[player] = false end end end local avatar = loadedTexture[player] or tes.defaultAvatar dxSetShaderValue(tes.maskShader, "imageTexture", avatar) dxDrawImage(x * (1312/sx), y * (722/sy) + offsetY, x * (25/sx), y * (50/sy), tes.maskShader,0,0,0, tocolor(255,255,255,255*toptimes.progress), false) end
  4. i put 325 too before and nothing too engineSetModelLODDistance(elementID, eventName == "onClientResourceStart" and 325 or 100) addEvent("onSettingChange", true) addEventHandler("onSettingChange", localPlayer, function(variable, value) if variable == "draw_distance" then local state = not (value == "Off") draw.setVisible(state, true) end end) function draw.setVisible(visible, notifyDisplay) draw.visible = visible and true or false if draw.visible then removeEventHandler("onClientResourceStart", root,draw.changeDistance) addEventHandler("onClientResourceStart", root,draw.changeDistance) end if notifyDisplay then triggerEvent("notification:create", localPlayer, "Draw distance", "is now "..(draw.visible and "ON" or "OFF")) end end function draw.changeDistance() for i,object in pairs(getElementsByType("object")) do if isElement(object) then local elementID = getElementModel(object ) engineSetModelLODDistance(elementID, eventName == "onClientResourceStart" and 325 or 100) end end end Anyone guys?
  5. i tried some and I couldn't find any solution function draw.setVisible(visible, notifyDisplay) draw.visible = visible and true or false if draw.visible then removeEventHandler("onClientResourceStart", root,draw.changeDistance) addEventHandler("onClientResourceStart", root,draw.changeDistance) end if notifyDisplay then triggerEvent("notification:create", localPlayer, "Draw distance", "is now "..(draw.visible and "OFF" or "ON")) end end function draw.changeDistance() for i,object in pairs(getElementsByType("object")) do if isElement(object) then local elementID = getElementModel(object ) engineSetModelLODDistance(elementID, eventName == "onClientResourceStart" and 1000 or 0) end end end addEventHandler("onClientResourceStart", root,draw.changeDistance)
  6. سلامات! الحين تتحدثون ب مشكله ثانيه ولا سالفه حقتي؟
  7. المود https://github.com/Necktrox/mta-discord-bot/tree/master/mta
  8. hey everybody, have a problem in function im trying to do engineSetModelLODDistance ON/OFF but nothing well I could not find any error in debugscript what's problem function draw.setVisible(visible, notifyDisplay) draw.visible = visible and true or false if draw.visible then removeEventHandler("onClientResourceStart", root,draw.changeDistance) addEventHandler("onClientResourceStart", root,draw.changeDistance) end if notifyDisplay then triggerEvent("notification:create", localPlayer, "Draw distance", "is now "..(draw.visible and "OFF" or "ON")) end end function draw.changeDistance() for i,object in pairs(getElementsByType("object")) do if isElement(object) then local elementID = getElementModel(object ) engineSetModelLODDistance(elementID,1000) end end end
  9. سلام عليكم ورحمة الله وبركاته اليوم بصمم سكربت الي يرسل شات لديسكورد بس طلع لي مشكله المشكله انه اذا انك انت كتبت شي ب حرف جي مايطلع كلام ب ديسكورد قد ماحولت تجيني مشكله addEventHandler("onResourceStart", root, function (message, messageType) for i, player in pairs(getElementsByType("player")) do bindKey(player, "G", "down", "chatbox", "global") if messageType == 0 then exports.discord:send("chat.message.text", { author = getPlayerName(source), text = message }) end end end) function doGlobalChat( player, command, ...) triggerEvent("onPlayerChat", player, table.concat({...}, " "), 3) end addCommandHandler("global", doGlobalChat) كذا يشتغل بس علي حرف T addEventHandler("onPlayerChat", root, function (message, messageType) for i, player in pairs(getElementsByType("player")) do bindKey(player, "G", "down", "chatbox", "global") if messageType == 0 then exports.discord:send("chat.message.text", { author = getPlayerName(source), text = message }) end end end) لاتبخلون حل بالله
  10. hello everybody I have some questions to link server with bot discord I heard it works on vps Is that true?, well can I try it through windows? like cmd i tired some attempt and failed and i don't know the reason why { "port": 22003, "passphrase": "key", "guild": "guild.id", "bots": [{ "channel": "testing", "token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" }] } there is config.json I know its have mistakes but I'm not an expert on this <discord> <channel>testing</channel> <passphrase>equal-to-the-server-passphrase</passphrase> <hostname>localhost</hostname> <port>22003</port> </discord> in this point i don't know what i put <passphrase>equal-to-the-server-passphrase</passphrase> help please
  11. here put my token? "token": "bot.token" > bot.token?
  12. hey i have a question in this point i did not understand what you mean <passphrase>equal-to-the-server-passphrase</passphrase> and where put my token bot?