Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 16/08/21 in Posts

  1. Lights Add-on for MTA:SA Map Editor Download resource on GitHub > This resource is still a beta release and under construction. Use at your own peril. You want to add lights inside the MTA:SA Map Editor? You've come to the right place. Installation You must download and install the following resources to use this resource: dl_core by @Ren_712 dl_lightmanager by @Ren_712 Once you've installed the prerequisites, we can install this resource! Download the latest release on GitHub Put the resource inside your MTA San Andreas 1.5/server/mods/deathmatch/resources folder Refresh resources by running refreshall in your server console The add-on is ready for use! How to use in map editor Start the map editor resource (editor) or enter the Map Editor from the main menu Click "definitions" from the top editor menu Add "editor_addon_lights" to your definitions and press OK "dl_lightmanager" resource should have been automatically started, if this is not the case, please start it manually Hover on the buttons in the bottom-left corner, and scroll your mouse wheel once Click the "Light" button to place a new light into the game world Double-click the light to change its properties Once you've finished with your map, save the map in a resource How to use with a saved map Start your map resource together with this "editor_addon_lights" resource, and you should be able to see the lights placed in the game world using your defined settings! License MIT License Copyright (c) 2021 patrikjuvonen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Download resource on GitHub >
    3 points
  2. Use as funções createObject e moveObject para criar / mover o objeto e a função addCommandHandler para usar o comando para fazer tudo funcionar. Veja os exemplos da wiki e nos traga dúvidas / erros para que possamos ajudar Obs: Você pode fazer isso client-side mas no seu caso talvez seja melhor fazer server-side, pois coisas no client-side só funcionaria para o player que deu o comando, já server-side a porta moveria para todos do servidor, não somente do cliente.
    1 point
  3. The following function can change the scale over the x, y and z axis: https://wiki.multitheftauto.com/wiki/SetObjectScale Which would have the same outcome. (requires a relative value instead of an absolute value.)
    1 point
  4. addEventHandler( "onPlayerDamage", root, function (attacker, damage_causing, bodypart, loss) local Vida = getElementHealth( source ) local Dinheiro = getPlayerMoney( source ) local DinheiroRemover = 500 -- quantidade a remover local QntdVidaMin = 80 -- quantidade minima para começar a remover dinheiro if Vida < QntdVidaMin then takePlayerMoney( source, Dinheiro-DinheiroRemover ) end end)
    1 point
×
×
  • Create New...