Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Cadu12, if you are not going to give it to him, then why the f*** do you post here? this section is to help people learning, not to say what do you have.
  2. Castillo

    mta 1.2

    JR10, I think you can't cancel this event.
  3. Castillo

    mta 1.2

    function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if (weapon == 31 and hitElement and getElementType(hitElement)=="vehicle") then -- If the weapon is a M4 and the element hit is a vehicle if getElementHealth(hitElement) >= 1000 then return end -- If the vehicle health is 1000%, don't heal it. setElementHealth(hitElement, getElementHealth(hitElement)+100) -- Set the vehicle health +100%. end end addEventHandler ( "onClientPlayerWeaponFire", getLocalPlayer(), onClientPlayerWeaponFireFunc ) Should work. P.S: Is client side. P.S2: You'll have to find a way to cancel the damage done, else it'll heal but also damage it .
  4. Castillo

    mta 1.2

    This doesn't require MTA 1.2 if I'm right.
  5. That's a compiled LUA script, default race is not compiled.
  6. Strange characters? do you mean the LUA script...? I suggest you to either start learning how to script in LUA or pay someone to script it for you. https://wiki.multitheftauto.com/wiki/Scr ... troduction https://wiki.multitheftauto.com/wiki/Int ... ng_the_GUI
  7. That's the wrong file. And no, I'm not going to edit it for you.
  8. The file is: race/rankingboard_client.lua
  9. You can't "enable" it or "disable" it, the script doesn't has that by default, you must edit it to use DX drawing functions instead of GUI (default).
  10. Repeat es repetir como vos dijiste, podrias usarlo para repetir un codigo hasta que llegue a un punto, ejemplo: addCommandHandler("test", function () local index = 0 repeat index = index +1 until index == 5 end) Deberia repetir index +1 hasta que llegue a 5.
  11. You should read how does the MTA resource system works, it would have been a lot easier if you had idea of how it works.
  12. Castillo

    Lua Complier

    With this compiler? because I don't have such issue.
  13. Castillo

    Lua Complier

    Check if you script has errors, if it does, the compiler won't compile it. P.S: Also check if the encoding is UTF-8, if it is, then set it to UTF-8 without BOM.
  14. Castillo

    Lua Complier

    CapY, I use it and I have no problems, maybe you don't know how to use it .
  15. Castillo

    Lua Complier

    Yes, I do, here's a download link: http://www.mediafire.com/?5et60em7mog3yms
  16. Castillo

    Lua Complier

    Take a look in this topic: viewtopic.php?f=91&t=31891 There are many LUA compilers.
  17. addEventHandler('onPlayerQuit', root, function(reason) outputChatBox('* ' .. getPlayerName(source) .. ' has left the game [' .. reason .. ']',getRootElement(), 255, 0, 0) end ) function a () local flag = exports.admin:getPlayerCountry ( source ) setElementData(source,"Country",flag) outputChatBox("* "..getPlayerName(source).." has joined the game from [".. tostring(flag) .."] [".. tostring(getPlayerIP( source )) .."]",getRootElement(), 255, 0, 0) end addEventHandler("onPlayerJoin",root,a)
  18. local skins = {{fileName="skin1", skinID=9}, {fileName="skin2", skinID=10}, {fileName="skin3", skinID=11}, {fileName="skin4", skinID=12}, {fileName="skin5", skinID=13}, {fileName="skin6", skinID=14}, {fileName="skin7", skinID=15}, {fileName="skin8", skinID=16}, {fileName="skin9", skinID=17}, {fileName="skin10", skinID=18}, {fileName="skin11", skinID=19}, {fileName="skin12", skinID=20}, {fileName="skin13", skinID=21}, {fileName="skin14", skinID=22}, {fileName="skin15", skinID=23}, {fileName="skin16", skinID=24}, {fileName="skin17", skinID=25}, {fileName="skin18", skinID=26}, {fileName="skin19", skinID=27}, {fileName="skin20", skinID=28}, {fileName="skin21", skinID=29}, {fileName="skin22", skinID=30}, {fileName="skin23", skinID=31}, {fileName="skin24", skinID=32}, {fileName="skin25", skinID=33}, {fileName="skin26", skinID=34}, {fileName="skin27", skinID=35}, {fileName="skin28", skinID=36}, {fileName="skin29", skinID=37}, {fileName="skin30", skinID=38}, {fileName="skin31", skinID=39}, {fileName="skin32", skinID=40}, {fileName="skin33", skinID=41}, {fileName="skin34", skinID=43}, {fileName="skin35", skinID=44}, {fileName="skin36", skinID=45}, {fileName="skin37", skinID=46}, {fileName="skin38", skinID=47}, {fileName="skin39", skinID=48}, {fileName="skin40", skinID=49}, {fileName="skin41", skinID=50}} function load() for index, skin in pairs(skins) do engineImportTXD(engineLoadTXD ( skin.fileName ..".txd" ), tonumber(skin.skinID)) engineReplaceModel(engineLoadDFF ( skin.fileName ..".dff", 0 ), tonumber(skin.skinID)) end end addEventHandler("onClientResourceStart",resourceRoot, function () local version = getVersion() if string.find(version.mta, "1.1.1") then setTimer ( load, 1000, 1) end end) You put the path as skins/skin1, skins/skin2, skins/skin3, and so on, but your skins aren't in a folder called SKINS, use that script.lua.
  19. The FILE path must be the same in META.XML and the SCRIPT.lua, if not, they'll never load because the path is WRONG, do you understand us?
  20. imperio, please speak only English in this section.
  21. Try replacing just ONE skin, then try with another, and so on.
×
×
  • Create New...