- 
                Posts21,935
- 
                Joined
- 
                Last visited
- 
                Days Won6
Everything posted by Castillo
- 
	Send the player name on the triggerServerEvent function.
- 
	Try cancelling the event: onClientPlayerStealthKill.
- 
	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 )
- 
	Find wherever it gets the vehicle name, and if the name is X, then change it to Y.
- 
	-- 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 )
- 
	Tambien podes cambiar el handling del vehiculo con setVehicleHandling.
- 
	I didn't read that part I guess, my bad. Good work with it, I may download it later to check it out.
- 
	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.
- 
	Si, del script que causa ese error.
- 
	Postea lo que intentaste.
- 
	Postea el contenido de ese script.
- 
	Well, you can set the player health when he gets damaged.
- 
	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.
- 
	You can do this: removeEventHandler ( "onClientPlayerDamage", getLocalPlayer(), cancelEvent ) addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), cancelEvent )
- 
	That happens when you click it more than once, right?
- 
	De nada ( ya lo acababa de probar justo ).
- 
	Probaste si la funcion esa hace lo que queres o no? eso es lo que te dije...
- 
	Proba con table.remove.
- 
	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 -->
- 
	Well, that's a different thing, you'll have to edit the script for that.
- 
	My script would work perfectly fine, he obviously forgot to add something.
- 
	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 )

 
            
        