Leaderboard
Popular Content
Showing content with the highest reputation on 02/08/19 in Posts
-
2 points
-
I wondered about creating a movie, but the freecam resource by itself wouldn’t suffice. I made this resource to help moviemakers to make more cinematic camera effects and help with actors. There are several camera modes: Aligment settings: You can attach a camera to any element (car or ped) or world position Four movement modes for camera position and target: 1) Rotation around point 2) Movement to point 3) Free mode (like freecam) 4) Static mode All modes interpolated and fully configurable. Some screenshots: Main menu: Camera menu: It looks crazy but I think easy to understand Target settings identical Peds as actors The experimental part of this resource is Player Motion Capture After beginning recording your motions captured and stopping the recording- the ped can repeat(try to repeat ) your movement and actions. Ped synchronization is very bad in this version of MTA but it will suitable for simple movement. How to use This resource isn’t suitable to do one big sequence at once, think of it as trying to do a big one take video. First of all you must write a script of movie ok 1. In Map editor resource place all vehicles and objects what do you want to use in your sequence. 2. In Stage resource load the map by using "map" console command It helps to easily reset vehicle positions and health. Map will be automatically restart with each Play/Rec command 3. In Actor mode (switch director/actor mode by pressing the F6 key) Stand at the point you want to begin your sequence at(player skin, animations, and weapons will also be saved, press F1 for the freeroam menu to access such features). You can make animation hotkeys. Select animation in freeroam menu. Press = key and 2-0 key for record current animation 4. Then press the O key. Recording will begin. Do some action and then press O key again. Recording will stop. 5. Press I to reset peds positions/restart map resource 6. Now you can play the peds actions by pressing P. 7. You can delete a ped by pressing the K key and select them with cursor 8. Record other peds motions. 9. Switch to Director mode by pressing F6. 10. Now you can configure your camera with the F7 menu or play saved cameras by 2-0 keys(tutorial video will be soon) 11. Play the sequence with P key. Any screen capture software will be useful GUI menu available by pressing F2 Known Issues: Restart resource bug https://forum.multitheftauto.com/viewtopic.php?f=105&t=27018 Camera Some camera mode combinations aren't correct Peds Incorrect Ped rotation while on aiming/fire Peds teleport in vehicles Peds cannot skydiving or driveby Bad weapon fire controls. RPG doesnt shoot Next versions Correct ped rotation while weapon fire Import/Export to xml Ped look_at position recording Peds driveby Parachute Code optimization Now (since 1.4) controls are re-bindable Key and commands overview Actor mode O - Start/Stop Record Player Motion I - Reset Scene\nP - Playback Record F2 - Stage Main Menu F3 - show/hide Timer F4 - show/hide HUD F5 Free cam F1 - freeroam menu for weapons animations etc. - - Reset Current Player Animation 2-9 - Play Animation Hotkey shift + 2-9 - in bind animation hotkey mode - set animation as single action (without shift - loop mode) = - Record Animation hotkey(2-0) Animation select in FreeRoam K - kill ped Console commands sens /sensX/sensY - mouse sensivity map <mapname> - set <mapname> resource as current map minute <numeric value> - set minute duration Director Menu - F6 F7 - Camera menu I - Reset Scene P - Playback Record 2-0 - Play camera preset Camera Free mode key control: W/S - move to Target A/D - Rotation around Target Arrow Keys - move camera Mouse Look - rotate Target(if not fixed) around Position Mouse Look + LMB - rotate Position(if not fixed) around Target Space - Pitch camera (relative Target) 2-9 - Apply Camera Preset (saved on F7 menu) - - Reset Camera = - Freeze camera Version history: 1.0.1 - restartResource problem fixed (now you must start the map manualy in the server console) - Warp player into vehicle after map resource restart - Now you can select animation hotkey mode - loop/single (by SHIFT key) - Camera issue with linking to object (after map restart camera freezes) - fixed 1.2.0 - Vehicle movement quality highly improved - Vehicle lights override (by L key) - Peds can crouch 1.3.0 - Vehicle and Peds movement interpolation - Experimental fix bug with ped rotation while ped on weapon fire. Right rotation in almost all cases. If you have any ideas how to fix it - we can discuss this 1.4.0 - GUI Main menu (by F2) - Improved vehicle/peds movement quality (now avalaible few quality modes for memory save) - Implemented peds driveby (not correct aiming, but works - Vehicle speed limiter assist - Multiple players record - Save/Load rec data (also in map-resources. needs ACL rights) - Camera menu fix (now buttons [c] (set as current) and as target/position works correctly) - Re-bindable controls - Beep sounds on start/stop rec/play 1.5.0 - Fixed problem with the huge scenes: no more *NETWORK TROUBLE* when attempting to record and save a lot of actors. - Also saving huge scenes is also supported now (but it takes a lot of time - few minutes So keep count of KeyFrames lower than 15000 (instead of 2000 for earlier versions) - Emerlights resource support. (desc https://forum.multitheftauto.com/viewtop ... 08&t=44652) Download link: https://community.multitheftauto.com/index.php?p=resources&s=details&id=646 mirror: Download stage.zip Note: Defalut Director Password: director To change password open server.lua file and edit line local pass = "director" Any feedback would help ACL configuration This resource uses the restartResource function, to use it the resource requires elevated privileges. To do this, open up the acl.xml file in your server\mods\deathmatch directory and add the highlighted line: <group name="Moderator"> <acl name="Moderator" /> <object name="resource.mapcycler" /> <object name="resource.mapmanager" /> <object name="resource.resourcemanager" /> <object name="resource.votemanager" /> [b][color=#BF0000]<object name="resource.stage" />[/color][/b] </group> If you want to load/save peds movement data in other map resources - add this line: <group name="MapEditor"> <acl name="Default" /> <acl name="MapEditor" /> <object name="resource.editor_main" /> <object name="resource.edf" /> [b][color=#BF0000]<object name="resource.stage" />[/color][/b] </group> Installation video tutorial Check my youtube channel for more videos: http://www.youtube.com/user/vovo4kaX Tutorial 1. Work with peds: Tutorial 2. Work with camera Camera demo: (it's just a freecam mode in Stage)Nice video by MykolasGX: by simsoonas 1. http://www.youtube.com/watch?v=f97ew_36eRc 2. http://www.youtube.com/watch?v=ABDOL3-uTXw 3. http://www.youtube.com/watch?v=DoFk5GlDwWs 4. http://www.youtube.com/watch?v=mMnOf7wv7MM 5. http://www.youtube.com/watch?v=QTCsMeRty9M by jjsullivan http://www.youtube.com/watch?v=apVgrcxAHug Thanks jjsullivan for help with translating this post1 point
-
1 point
-
No, I mean in this case a RAM buffer. As in waiting for enough data before processing it. This indeed is also something which can be compared to a network buffers, but I was not talking about that in my last reply. I was talking about how your server is writing logs intern. If you are going to collect player debug information and send it to the server. Then yes you might very well consider using a buffer for preventing the network from being overloaded. A latent event will make sure the messages will not block your regular output. (even though it can still happen if there is too much going on) https://wiki.multitheftauto.com/wiki/TriggerLatentServerEvent https://wiki.multitheftauto.com/wiki/GetLatentEventStatus1 point
-
@majqq There is a buffer, it will only start writing when the buffer reached an amount of data it will start writing. So by default it should be fine. Just what are you going to log? That is the real question. Slots do not tell you how much performance your server has. In some cases I would even consider slots a scam, as the player count is just a performance-usage multiplier X the resources. But there should be a few good deals out there... at least I hope so. The thing that matter: CPU RAM (1GB should be enough but better to have 2 in case of a memory leak) SWAP (when you run out of ram, you will be using your storage as ram, this is called SWAP. It is very slow.) Storage (SSD recommended, especially when you are not having enough RAM while doing heavy workloads) You do not need a lot of storage for MTA. With how many other clients are using the server. Network speed and bandwidth.1 point
-
Você esta usando triggerClientEvent no mesmo lado, nunca vai funcionar, fiz um upgrade no seu código: Client function TrabTaxista (_, state) if painel == true then if (state == "down") then if (isCursorOnElement (615, 224, 128, 32)) then removeEventHandler ("onClientRender", root, Dx) showCursor (false) painel = false triggerServerEvent ("trabtax", getLocalPlayer()) -- outputChatBox ("Agora é taxista", 255, 255, 255) -- triggerClientEvent ("trabtax", getLocalPlayer()) -- Erro aqui, ''triggerClientEvent''. end end end end addEventHandler ("onClientClick", root, TrabTaxista) Server function taxx () if (isObjectInACLGroup ("user."..getAccountName (getPlayerAccount (client)), aclGetGroup("Taxista"))) then -- Se o jogador já estiver na acl, então: outputChatBox ("Erro! Você já está no trabalho de taxista!", client, 255, 30, 30) else -- Senão: aclGroupAddObject (aclGetGroup("Taxista"), "user."..getAccountName (getPlayerAccount (client))) -- Adiciona o jogador na acl. outputChatBox ("Parabéns! Agora você é um taxista!", client, 0, 255, 0) end end addEvent ("trabtax", true) addEventHandler ("trabtax", root, taxx)1 point
-
Usando shaders somente. Você também pode alterar a cor do céu usando SetSkyGradient. Mas ele não vai deixar o cenário mais escuro.1 point
-
1 point
-
É mais fácil simplesmente abrir o painel pelo servidor com um triggerClientEvent. Só que antes desse trigger, fazer a verificação de ACL. Dessa forma, quem não estiver na ACL não vai nem conseguir abrir o painel.1 point
-
1 point
-
-- client-side local canvas = Vector2(guiGetScreenSize()) local ads = { -- ['Tipo'] = {caminho do arquivo de voz, texto} ['Welcome'] = {'sounds/voice1.mp3', 'Seja bem-vindo(a) ao servidor.'}, } local messageType local voiceElement local startTick addEvent('tts:play()', true) addEventHandler('tts:play()', root, function(type) if ads[type] then if not voiceElement then local voice = fileExists(ads[type][1]) and ads[type][1] or 'https://translate.google.com/translate_tts?ie=UTF-8&tl=pt-BR&client=tw-ob&q='..string.gsub(ads[type][2], ' ', '+') messageType = ads[type][2] startTick = {getTickCount(), 8} voiceElement = playSound(voice, false) addEventHandler('onClientRender', root, draw) end else if _debug then outputDebugString('Não foi possível reproduzir o som.') end end end) function draw() if messageType ~= nil then dxDrawText(messageType, 0, 0, canvas.x, canvas.y, 0xffffffff, 1.20, 'default-bold', 'center', 'center') if startTick[1] + (startTick[2] * 1000) < getTickCount() then messageType = nil startTick = nil voiceElement = nil removeEventHandler('onClientRender', root, draw) end end end -- server-side (apenas uma base de como você chamaria o evento) triggerClientEvent(player, 'tts:play()', player, 'Welcome') Fiz esse script sem testar, deve funcionar se você usar corretamente. Se o sistema não encontrar o arquivo de som, ele irá executar a voz do Google Tradutor.1 point
-
1 point
-
It was handled through Discord PM's and you know the answer, your acts of infecting MTA players with remote RAT trojan (which you admitted in the process of trying to apologize for) and other illegal activities weren't forgiven and the appeal was denied.. so please stop making topics in here, thanks. @murat1213151 point
-
Ouai là, c'est juste pas présenté pareil: https://wiki.multitheftauto.com/wiki/Weapon_Flags Mais c'est pas un flag c'est une propriété. T'avais pas lu là ? Bon après je ne sais pas trop comment ça doit se modifier et à quoi chacun correspond vraiment. A ta place je ferai d'abord un getWeaponProperty avec ton arme pour voir déjà quelles sont les valeurs actuelles. Puis je me créerai une commande pour modifier ces valeurs comme je veux pendant les tests en jouant avec les valeurs. Et quand t'es content du résultat, note les valeurs et utilise les dans ton script.1 point
-
Updated the topic to latest version. P.s. if you are interested in always receive notifications when the newest version comes out. There is a feature on the forum called: following. This allows you to keep track of updates from a selected topic. It is located on the right + top corner of where the topic starts.1 point
-
الرؤساء العرب حاولو يعملو الوحدة العربية و فشلو هتنجحها انت في Mta ض هي فكرة جميلة بس كل واحد هيبقي شايف التاني احسن منه و ليه سلطة عليه و تكبر و شغل عيال مش هتنجح ابدا1 point
-
1 point
