Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    Hola

    maleter = fromJSON(data.maletero) maleteros[tostring ( data.vehicleID )] = {maleter[1], maleter[2], maleter[3], maleter[4]} outputDebugString(maleter[1])
  2. local str, def, int, sta, han, inv, wep, res, slt, per = nil wdwCreateCharacter=guiCreateWindow(sx*0.4, sy*0.4, sx*0.2, sy*0.2, "Pick a name", false) for pIndex, classes in ipairs(class) do --Loop the classes outputChatBox(tostring(classes)) if (source==btnGuard) then local skills = classes["police"]['guard'] outputChatBox ( skills.STR ) elseif (source==btnSergeant) then local skills = classes["police"]['sergeant'] outputChatBox ( skills.STR ) end end
  3. "engineAcceleration" "maxVelocity" These should do.
  4. button = guiCreateButton ( arguments... ) addEventHandler ( "onClientMouseEnter", button, function ( ) outputChatBox ( "The cursor just passed over the button." ) end ,false )
  5. You can add the scripts inside "extra_health" to your resource, but won't really make much difference.
  6. You can't use "ipairs" for that kind of tables, you must use "pairs".
  7. No point on that, Mittell, his code already works.
  8. Works fine here, it spawned a lot of busses.
  9. WIth your first script, I got no errors. class = { { police={ guard = {STR=3, DEF=3, INT=3, STA=3, HAN=3, INV=3, WEP=3, RES=3, PER=1}, supervisor = {STR=5, DEF=5, INT=5, STA=5, HAN=5, INV=5, WEP=5, RES=5, PER=1} }, Prisoner={ fresh = {STR=3, DEF=3, INT=3, STA=3, HAN=3, INV=3, WEP=3, RES=3, SLT=1}, hardened = {STR=5, DEF=5, INT=5, STA=5, HAN=5, INV=5, WEP=5, RES=5, SLT=1} } } } for pIndex, classes in ipairs(class) do --Loop the classes outputDebugString(tostring(pIndex).." "..tostring(classes)) for index, classPackage in pairs(classes['police']) do outputChatBox(tostring(index).." "..tostring(classPackage)) end end
  10. Use "setElementInvulnerable" to make him invulnerable.
  11. local cachorro2 = call (getResourceFromName("slothbot"), "spawnBot", x+3, y+1, z, rot, skin, interior, dimension, team, weapon, mode, modesubject) exports [ "extra_health" ]:setElementExtraHealth ( cachorro2, 999 ) else outputChatBox("Você não tem dinheiro para criar um PET", thePlayer, 225, 0, 0) end end addCommandHandler( "cachorro2", petCao) By the way, if you want to make it invulnerable, then you can use this function from my "extra_health": exports [ "extra_health" ]:setElementInvulnerable ( cachorro2, true )
  12. If that's a server side script, then you are using the wrong event, is "onResourceStart" for server side. Also, post your whole script.
  13. You aren't reading what I say? that doesn't make any sense...
  14. With the resource I gave you the link for you can do what you want, you can give the ped/player as much health as you want.
  15. The max health of a ped/player is 200% using the stat, you'll have to use my resource "extra_health". https://community.multitheftauto.com/in ... ls&id=5195 So you can do this: exports [ "extra_health" ]:setElementExtraHealth ( cachorro2, 999 )
  16. There's nothing to "fix", you just have to finish it.
  17. Because that script doesn't do what you just mentioned.
  18. And what is that suposed to do?
  19. You'll have to use SQLite or MySQL.
  20. Is because the last part of the JSON is gone.
  21. Castillo

    Forgive me

    Welcome back, finally I'll have someone to give me a hand on moderating the spanish section.
  22. You can use tables to store the vehicle of each player, then when he attempts to spawn another, you destroy his current.
  23. Well, you can use addCommandHandler or the event onConsole.
×
×
  • Create New...