Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Send the player name on the triggerServerEvent function.
  2. Try cancelling the event: onClientPlayerStealthKill.
  3. You forgot to define the player element at bindKey. function spawnGood ( player ) spawnPlayer ( player, posX, posY, posZ - 9, 0, 111, 0, 0, nil ) giveWeapon ( player, 23, 100 ) giveWeapon ( player, 8, 1 ) giveWeapon ( player, 35, 1 ) end function wastedGood ( ) spawnPlayer ( source, posX, posY, posZ - 9, 0, 121, 0, 0, nil ) giveWeapon ( source, 23, 100 ) giveWeapon ( source, 8, 1 ) giveWeapon ( source, 35, 1 ) end function spawnDead ( player ) spawnPlayer ( player, posX, posY, posZ - 9, 0, 111, 0, 0, nil ) giveWeapon ( player, 23, 100 ) giveWeapon ( player, 8, 1 ) giveWeapon ( player, 35, 1 ) end function wastedDead ( ) spawnPlayer ( source, posX, posY, posZ - 9, 0, 121, 0, 0, nil ) giveWeapon ( source, 23, 100 ) giveWeapon ( source, 8, 1 ) giveWeapon ( source, 35, 1 ) end addEventHandler ( "onPlayerJoin", getRootElement (), function ( ) bindKey ( source, "1" "down", spawnGood ) bindKey ( source, "2" "down", spawnDead ) end ) addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, player in ipairs ( getElementsByType ( "player" ) ) do bindKey ( player, "1" "down", spawnGood ) bindKey ( player, "2" "down", spawnDead ) end end ) addEventHandler ( "onPlayerWasted", getRootElement (), wastedGood ) addEventHandler ( "onPlayerWasted", getRootElement (), wastedDead )
  4. Find wherever it gets the vehicle name, and if the name is X, then change it to Y.
  5. -- server side: function onLoadAccountsList ( ) local accounts = { } for _, account in ipairs ( getAccounts ( ) ) do table.insert ( accounts, getAccountName ( account ) ) end triggerClientEvent ( "onClientLoadAccountsList", root, accounts ) end addEvent ( "onLoadAccountsList", true ) addEventHandler ( "onLoadAccountsList", getRootElement(), onLoadAccountsList ) -- client side: addEvent ( "onClientLoadAccountsList", true ) addEventHandler ( "onClientLoadAccountsList", root, function ( accounts ) guiGridListClear ( tabaccountslist ) for _, name in ipairs ( accounts ) do local row = guiGridListAddRow ( tabaccountslist ) guiGridListSetItemText ( tabaccountslist, row, tabaccountslistcolumn, name, false, false ) end end )
  6. Tambien podes cambiar el handling del vehiculo con setVehicleHandling.
  7. I didn't read that part I guess, my bad. Good work with it, I may download it later to check it out.
  8. It is needed, because he wants to add the event when he presses a key, you should read the entire topic before reply, don't take it the wrong way. @Chaos: That should work, yes.
  9. Si, del script que causa ese error.
  10. Postea el contenido de ese script.
  11. Well, you can set the player health when he gets damaged.
  12. Yes, you can also use that to disable it. The zombies can still hurt you because the zombies script uses setElementHealth, and "onClientPlayerDamage" doesn't cancel that.
  13. You can do this: removeEventHandler ( "onClientPlayerDamage", getLocalPlayer(), cancelEvent ) addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), cancelEvent )
  14. That happens when you click it more than once, right?
  15. Castillo

    Help =/

    So what? I already told you the problem... you aren't setting the image path.
  16. De nada ( ya lo acababa de probar justo ).
  17. Probaste si la funcion esa hace lo que queres o no? eso es lo que te dije...
  18. That's a wrong map file, try this: "1643.1171" y="-1515.9602" z="13.6608" /> -- Car junk LS - Dealer --> "2050.0410" y="-2493.8975" z="13.5469" /> -- Car junk LS - Airport --> "2449.2085" y="-2717.8171" z="1.2407" /> -- Car junk LS - Dock --> "-1936.1998" y="276.2972" z="41.0469" /> -- Car junk SF - Dealer --> "-1444.9786" y="-518.4357" z="13.8330" /> -- Car junk SF - Airport --> "-1650.2468" y="254.0446" z="-0.4856" /> -- Car junk SF - Dock --> "1406.0493" y="970.4077" z="10.8130" /> -- Car junk LV - Dealer --> "1370.8197" y="1769.5979" z="10.4103" /> -- Car junk LV - Airport --> "1628.2588" y="572.7244" z="-0.4549" /> -- Car junk LV - Dock -->
  19. Well, that's a different thing, you'll have to edit the script for that.
  20. My script would work perfectly fine, he obviously forgot to add something.
  21. Castillo

    Help =/

    Is because you aren't specifing the path at all, you just put ":".
  22. Castillo

    Key Hide Hud

    local key = "F6" function hudChanger ( thePlayer ) showPlayerHudComponent ( thePlayer, "all", ( not isPlayerHudComponentVisible ( thePlayer, "ammo" ) ) ) end addEventHandler ( "onPlayerJoin", getRootElement (), function ( ) bindKey ( source, key, "down", hudChanger ) end ) addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, player in ipairs ( getElementsByType ( "player" ) ) do bindKey ( player, key, "down", hudChanger ) end end )
×
×
  • Create New...