Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 19/06/19 in all areas

  1. @JeViCo There is nothing written on that file yet, not until the ? is finished. That poor creature needs a toilet and fast. https://wiki.multitheftauto.com/wiki/FileFlush
    2 points
  2. https://wiki.multitheftauto.com/wiki/SetVehicleNitroActivated -- CLIENT SIDE bindKey("lalt", "both", function(key, keystate) local vehicle = getPedOccupiedVehicle(localPlayer) if vehicle then setVehicleNitroActivated(vehicle, keystate == "down") end end)
    1 point
  3. local sp2 = getVehicleNitroLevel(car) if sp2 and sp2*180 > 1 then sp2 = sp2*180 ... end
    1 point
  4. ,,You want to show the timestamp before every line on the chat? (or I do not understand...) " exactly! Thanks for help! I will buy a script, because it is not working, I think it is a problem between 8 and 19 because it is not working all the script.Your was what I wanted. Thanks for help man! Have a nice day!
    1 point
  5. You want to show the timestamp before every line on the chat? (or I do not understand...) This is my last tip. This little script show the timestamp before EVERY(!) line on the chat. -- CLIENT SIDE SCRIPT !!! local function getFirstColorCode(text) local s, e = text:find("#%x%x%x%x%x%x") return (s and e) and text:sub(s, e) or "#FFFFFF" end local function getTimePrefix() local realtime = getRealTime() return "[" .. string.format("%02d:%02d:%02d", realtime.hour, realtime.minute, realtime.second) .. "] " end addEventHandler("onClientChatMessage", root, function(text, r, g, b) if not text:find("%d%d:%d%d:%d%d") then cancelEvent() outputChatBox(getFirstColorCode(text) .. getTimePrefix() .. text, r, g, b, true) end end)
    1 point
  6. it seems working. Thank you! You saved my time
    1 point
  7. المود رائع بس مشكلتة انه الي يكون افك م يخرجه تلقائي شفت شخص داخل الحرب و شخص ثاني افك و جلس يقتله ساعه وانا اشوف الشات كيل وجمع نقاط فوق ال100 بس من ورا انه الشخص الي ضده افك لو تشوفون لها حل انه الي يكون افك يخرجه تلقائيي :")
    1 point
  8. local function getFirstColorCode(text) local s, e = text:find("#%x%x%x%x%x%x") return (s and e) and text:sub(s, e) or "#FFFFFF" end local function getTimePrefix() local realtime = getRealTime() return "[" .. string.format("%02d:%02d:%02d", realtime.hour, realtime.minute, realtime.second) .. "] " end addEventHandler("onPlayerChat", root, function(text, msgtype) if msgtype == 0 then cancelEvent() local text = getPlayerName(source) .. ": #ebddb2" .. text outputChatBox(getFirstColorCode(text) .. getTimePrefix() .. text, root, 255, 255, 255, true) end end) Do you mean something like that?
    1 point
  9. I don't really understand what you want to do. Simply put the color code at the beginning of the text.
    1 point
  10. See https://wiki.multitheftauto.com/wiki/OOP and https://wiki.multitheftauto.com/wiki/OOP_Introduction local txd = EngineTXD:create('banshee.txd', true) should be local txd = EngineTXD.create('banshee.txd', true) -- or local txd = EngineTXD('banshee.txd', true)
    1 point
  11. Try txd:import(id) --Or EngineTXD.import(txd, id) You need to read a bit about the 'self' argument, maybe you will find it a little confusing; but it make things a lot easier when you get it
    1 point
  12. You can't hide it. But, I think you want to create a "DX-Editbox". (Because of the previous topic) Maybe, this is useful: https://community.multitheftauto.com/index.php?p=resources&s=details&id=10804
    1 point
  13. Fixed code -- SERVER SIDE function jumpWithVehicle(playerWhoPressedTheButton) if not isPedInVehicle(playerWhoPressedTheButton) then return end -- kill function if player is not in vehicle local vehicleElement = getPedOccupiedVehicle(playerWhoPressedTheButton) -- we know player is in a vehicle, so get the vehicle's element if getVehicleController(vehicleElement) ~= playerWhoPressedTheButton then return end -- check player is who drive this vehicle (if not -> kill function) local playerAccountName = getAccountName(getPlayerAccount(playerWhoPressedTheButton)) -- get the player's account name if isObjectInACLGroup("user."..playerAccountName, aclGetGroup("Admin")) then -- check is player in the 'Admin' ACL group. local vehicleType = getVehicleType(vehicleElement) if vehicleType == "Plane" or vehicleType == "Helicopter" then return end -- kill function if the vehicle is a Plane/Helicopter local velocity_x, velocity_y, velocity_z = getElementVelocity(vehicleElement) setElementVelocity(vehicleElement, velocity_x, velocity_y, velocity_z + 0.33) -- boost vehicle's Z velocity end end addEventHandler("onResourceStart", resourceRoot, function() for _, onlinePlayer in ipairs(getElementsByType("player")) do bindKey(onlinePlayer, "lshift", "down", jumpWithVehicle) end end) addEventHandler("onPlayerJoin", root, function() bindKey(source, "lshift", "down", jumpWithVehicle) end)
    1 point
  14. تم تحديث رابط السيرفر, الرابط القديم كان فيه مشكلة -
    1 point
×
×
  • Create New...