Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/02/20 in all areas

  1. bengines provides custom engine sounds for vehicles. The resource is not focused to be ultra realistic, it is designed to use for casual servers. Not useful for me anymore so sharing with community. Used on old project. Sounds are copyrighted content not owned by me. Features: ready to use, chooses the best engine for vehicle depending on handling! easy to customize & expand for Lua programmers 30 soundpacks for vehicles (buses, bikes, sport cars etc.) stable code with quite high performance used on server with 600 players ALS effect (exhaust flames) Turbo (satisfying whistle and blow-off sounds) Videos: https://streamable.com/n7k40 https://streamable.com/lp14t https://streamable.com/q5e9g Download: Github: https://github.com/brzys/bengines (feel free to send pull requests) Community: to-do For programmers: --[[ Element datas used by resource [array] vehicle:engine - stores basic info about engine type, sound pack etc. (synced) [string] vehicle:type - used for engine calculation, useful for servers. Available: Bus, Truck, Sport, Casual, Muscle, Plane, Boat, Motorbike (synced) [string] vehicle:fuel_type - customized for each engine. Useful for servers. Available: "diesel", "petrol" (synced) You can use setElementData(vehicle, "vehicle:upgrades", {turbo=true, als=true}) to add turbo or ALS. --]] --[[ Exported functions --]] exports.bengines:getVehicleRPM(vehicle) -- returns RPM of given vehicle exports.bengines:getVehicleGear(vehicle) -- returns current gear of given vehicle exports.bengines:toggleEngines(bool) -- true / false, restore GTA engine sounds
    1 point
  2. وجهة نظر تحُترم لكن انا عن نفسي اتعلمت عن طريق الأكواد الجاهزة بالتوفيق
    1 point
  3. i started to document functions here https://wiki.multitheftauto.com/wiki/PhysicsCreateWorld and pull request here https://github.com/multitheftauto/mtasa-blue/pull/1246 i'm waiting for feedback about syntax
    1 point
  4. <meta> <info author="Amanda" type="animation" name="choro" description="Script de chorar" /> <script src="script.Lua" type="server"/> </meta> function toggleSit(thePlayer) if not getElementData(thePlayer, "sitting") then setPedAnimation(thePlayer, "ped", "seat_down", -1, false, false, false, false) setElementData(thePlayer, "sitting", true) else -- If you use again this command then your character stand up setPedAnimation(thePlayer) removeElementData(thePlayer, "sitting") end end addCommandHandler("sit", toggleSit) Tenta ai agora...
    1 point
  5. ممكن الطريقة ذي تنفع ماختلف معاك لكن الطريقة الصحيحة قبل مايحوس يتعلم الأساسيات كيف يسوي فنكشن،المتغيرات،التحققات وغيره وفيه قسم كامل بالمنتدى وفيه مواضيع كثيرة للتعلم واعتقد فيه موضوع مرتب لو يبحث مافهم حاجة معينة يقدر يطلب مساعدة انه مافهم الشيء المعين هذا أو الخطأ بكوده ونحاول نفهمه الشيء يلي مايعرفه أو نصحح له لكن كل مرة تحتاج حاجة وتنتظر احد يعطيك كود كامل صعب مرة يفهمها وبيشوفها معقدة عكس لمن يشوف دروس ويجرب ويصير يعرف اشياء مثلاً ليه فيه اند هنا ليه مسوي متغير وزي كذا ومعروف عشان تتعلم أي لغة اذا كنت مبتدئ لازم تشوف شروح لها
    1 point
  6. Dica: Para usar um comando em alternância, crie uma variável qualquer e inverta o valor atual dela com not function qualquerCoisa () if (variavel) then outputChatBox ("Fechar.") else outputChatBox ("Abrir.") end variavel = not variavel -- Alterna entre true e false a cada execução. end addCommandHandler ("teste", qualquerCoisa)
    1 point
  7. it's possible. Use these function. First get the health of the vehicle, after that fix the vehicle (everythink will be repaired, also the health of the vehicle) and after that set the old health of the vehicle. But maybe therer's also a function for that but i dont know about it. getElementHealth fixVehicle setElementHealth
    1 point
  8. This has gone a bit far, I'll lock the topic.
    1 point
×
×
  • Create New...