Jump to content

Renkon

Members
  • Posts

    876
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Renkon

  1. Renkon

    string.find ?

    string.find(getPlayerName(localPlayer), "\[ClanTag\]")
  2. Add another command handler to set isChatDisabled[p] to false
  3. removePedFromVehicle setElementPosition
  4. In order to make something similar to your request, you should create, as Castillo said, a table holding every player as a row. Inside each row, you should place a variable depending on whether it's disabled (true) or not. By default, everything is false in a table. So, you create a commandHandler setting their table[player] equal to false. That's done, one step more. You must add a if-check inside the function where you outputChatBox in order to send (or not) the message. Please, don't watch out the spoiler unless you tried and you couldn't do it.
  5. local v = getPedOccupiedVehicle(pVar) if (v) then -- He is inside a car -- v = the car else -- He is NOT inside a car end
  6. Instead of copying and pasting why dont you do something simpler? addEventHandler("onClientResourceStart", resourceRoot, function() playSound("file.mp3") -- Dont forget to add file src in meta. end )
  7. haber hay pero te vas a hacer un dolor de kbza treemndo. tendrias q storear todas las variables de nombre de jugador en una tabla y despues cuando selecciona sin el hexa conseguir el nombre verdadero y es un quilombo
  8. addCommandHandler("dp", function(player) local vehicle = getPedOccupiedVehicle(player) if not vehicle then return end if not isVehicleDamageProof(vehicle) then setVehicleDamageProof(vehicle, true) else setVehicleDamageProof(vehicle, false) end )
  9. Te recomendaria que lo dejes con el hexa si no queres complicartelas
  10. Renkon

    Question

    Check on the forum for a example to add all the players in the gridList Just replace that example with some function where you get all the clans, add it to a table, and done with ipairs(table)
  11. Ahí esta que la cagas. El nombre de un jugador puede ser HolaQue#ffffffHace y si consigues un player con el nombre HolaQueHace no te funcionará correctamente...
  12. Hey, everything you mean can be done with createBlip function Check the arguments, you will find the distance, and how to set it createBlip
  13. Renkon

    Scoreboard

    What the heck? So if that works then outputChatBox "Hello world" Would that work? Never knew something like that
  14. setTimer( function() for _, p in ipairs(getElementsByType("player")) do setElementHealth(p, 100) end end, 60000, 0)
  15. Renkon

    Scoreboard

    for index, players in ipairs ( getElementsByType "player" ) do What the LULZ? how can that work,
  16. Empeza a usar el outputChatBox como ayuda debuggeando. Mostra el valor que tiene la variable text, el tostring(elPlayer) en el cliente asi ves si es un userdata o un boolean, etc
  17. Pero a ver cuando te hablo de debuggear no te hablo de escribir /debugscript 3. Lee mi post anterior con cuidado...
  18. Cuando hablo de debuggear hablo de mostrar las variables y todo en el chat para estar seguro que pasa todo correctamente. Algun error hay cuando obtienes el texto o cuando getteas el Player
  19. Quiere decir que se dropea la variable, es decir, no se le da uso y se dropea
  20. No encontre un error a simple vista. Prueba a ir debuggeando el codigo en el cliente, sobretodo en el evento donde se triggea al server. Chequea si el elemento elPlayer es un player, el texto del editBox, etc.
  21. Renkon

    killTimer

    I'd suggest you to use tiempo = nil inside the if isTimer(tiempo) statement in addition to killTimer cause it happens to me generally and I gotta use that to make it work. edit: Use this example if isTimer(tiempo) then killTimer(tiempo) tiempo = nil end
  22. onResourceStart source is not a player.... just saying ^^. You cannot really make that script onResourceStart due to lack of players oto
  23. Renkon

    help

    Place the variables inside the oNClientRender function
×
×
  • Create New...