Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. That's wrong... @Laura: Use this: function replaceModel ( ) local txd = engineLoadTXD ( "bobcat.txd" ) engineImportTXD ( txd, 422 ) local dff = engineLoadDFF ( "bobcat.dff", 422 ) engineReplaceModel ( 422 ) end addEventHandler ( "onClientResourceStart", resourceRoot, replaceModel )
  2. Castillo

    Mute Problem

    I know why, it's because the admin panel triggers it's own "onPlayerMute" event. addEventHandler ( "onPlayerMute", root, function ( state ) if ( state == true or state == false ) then setElementData ( source, getResourceName ( getThisResource ( ) ) ..":muted", state ) end end )
  3. Castillo

    Mute Problem

    addEventHandler ( "onPlayerUnmute", root, function ( ) setElementData ( source, resName ..":muted", false ) outputChatBox ( "UNMUTED!" ) end ) Use that see if it outputs "UNMUTED!" when you unmute the player.
  4. Castillo

    Mute Problem

    Use that code ALONE.
  5. Castillo

    Mute Problem

    Won't that cause a stack overflow? what's the point of making that whole function when you can simply use the events onPlayerMute and onPlayerUnmute to set the element data?
  6. This is wrong: "id" will be a string, not a number.
  7. If you want that, then simply modify the killmessages resource.
  8. That's the problem, the client side doesn't load at the same time as the server side, make it a command and you'll see how it works.
  9. When are you using the function "addPlayerAchievement"?
  10. Castillo

    Mute Problem

    local resName = getResourceName ( getThisResource ( ) ) addEventHandler ( "onPlayerMute", root, function ( ) setElementData ( source, resName ..":muted", true ) end ) addEventHandler ( "onPlayerUnmute", root, function ( ) setElementData ( source, resName ..":muted", false ) end )
  11. Usa tablas, asi es como yo hice mi menu para comprar skins tipo GTA V.
  12. Hay un ejemplo en la wiki, lo intentaste de usar y modificarlo?
  13. Missing "weapon" ( grid list ) at guiGridListGetSelectedItem.
  14. No es necesario usar callRemote en realidad, podes hacer todo client side usando fetchRemote.
  15. To make the rhino able to get destroyed by bullets you can use onClientPlayerWeaponFire.
  16. addCommandHandler ( "aclObjectList", function ( player ) local ADMIN_GROUP = "Admin" local objects = aclGroupListObjects ( aclGetGroup ( ADMIN_GROUP ) ) local count = 0 for object, name in pairs ( objects ) do outputChatBox ( "ACL LIST: ".. ADMIN_GROUP .." #".. tostring ( count ) .." Object: ".. name ..".", player ) count = ( count + 1 ) end end ) Is that what you wanted?
  17. kickme = guiCreateButton( 0.2, 0.52, 0.15, 0.05, "kick me", true ) cancel = guiCreateButton( 0.2, 0.60, 0.15, 0.05, "cancel", true ) addEventHandler( "onClientGUIClick", root, function( ) if ( source == kickme ) then kickTimer = setTimer ( triggerServerEvent, 5000, 1, "kickPlayer", localPlayer ) elseif ( source == cancel ) then if isTimer( kickTimer ) then killTimer( kickTimer ) end end end )
  18. function padappa ( ) dxDrawText ( tostring ( pro ), 507, 466, 786, 569, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, true, false, false ) end addEventHandler ( "onClientRender", root, padappa )
  19. Castillo

    help

    What do you mean?
  20. They can steal it and execute it on their server, but they won't be able to edit it.
  21. There's no need to delete them, just encrypt and compile the scripts with luac.multitheftauto.com.
  22. Yo uso un XML client side en un recurso que carga las noticias del XML. No veo el problema para algo tan simple.
  23. Most of the race servers out there make their own "addons".
×
×
  • Create New...