devtoolsgg.com
Guide
GuideFiveMFiveMGarry's ModMinecraftShared
Garry's Mod

DarkRP

  • Job
  • Shipment
  • Entity
  • Munizioni
  • Cibo
  • Categorie
  • Door group
  • Agende
  • Demote group
  • Group chat

Configurazione del server

  • Script di avvio
  • server.cfg
  • Workshop

Liste di riferimento

  • Playermodel
  • Armi
  • Entity
  • Hook
  • Enum
devtoolsgg.com

Generatori per chi gestisce server di gioco

Piattaforme

  • FiveM
  • Garry's Mod
  • Minecraft
  • Shared

Risorse

  • Home
  • llms.txt

Social

  • Presto disponibile.

© 2026 devtoolsgg.com

Nessuna affiliazione, approvazione o associazione con Cfx.re, Rockstar Games, Facepunch Studios o Valve. Tutti i marchi appartengono ai rispettivi proprietari.

  1. Garry's Mod
  2. Liste di riferimento
  3. Hook

Hook del gamemode

Ogni hook GM, con il realm in cui gira davvero. Filtra per realm prima di scrivere l'hook: un hook dell'HUD su un server non scatta mai, ed è la cosa che va storta più spesso la prima volta.

267 vociFonteGarry's Mod Wiki
HookRealmA cosa serve
serverCalled when a map I/O event occurs.
clientAdds a death notice entry.
clientAllows you to adjust the mouse sensitivity.
serverCalled when a player tries to pick up something using the "use" key, return to override.
sharedThis hook is used to calculate animations for a player.
clientCalled from GM:CalcView when player is in driving a vehicle.
clientAllows override of the default view.
clientAllows overriding the position and angle of the viewmodel.
serverCalled whenever a players tries to create an undo.
serverCalled when a variable is about to be edited on an Entity (called by `Edit Properties...` menu), to determine if the edit should be permitted.
serverDetermines if the player can exit the vehicle on their own.
serverDetermines whether or not a given player player can enter the given vehicle.
serverDetermines if the player can kill themselves using the `kill` or `explode` console commands.
serverDetermines if the player can unfreeze the entity.
sharedControls if a properties can be used or not.
serverCalled whenever a players tries to undo.
menuCalled each frame to record demos to video using IVideoWriter.
clientCalled when a message is printed to the chat box.
clientCalled whenever the content of the user's chat input box is changed.
serverCalled when a **non local player** connects to allow the Lua system to check the password.
sharedCalled when a player's sign on state changes.
client, menuCalled when derma menus are closed with Global.CloseDermaMenus.
clientCalled whenever an entity becomes a clientside ragdoll.
serverCalled when a serverside ragdoll of an entity has been created.
clientAllows you to change the players movements before they're sent to the server.
sharedTeams are created within this hook using team.SetUp.
sharedCalled upon an animation event, this is the ideal place to call player animation functions such as Player:AddVCDSequenceToGestureSlot, Player:AnimRestartGesture and so on.
serverHandles the player's death.
clientThis hook is called every frame to draw all of the current death notices.
clientCalled every frame before drawing the in-game monitors ( Breencast, in-game TVs, etc ), but doesn't seem to be doing anything, trying to render 2D or 3D elements fail.
client, menuCalled after all other 2D draw hooks are called.
clientAllows you to override physgun effects rendering.
sharedCalled right before an entity stops driving.
sharedCalled whenever a sound has been played.
sharedCalled every time a bullet is about to be fired from an entity, which allows to completely modify the bullet structure before the bullet is actually fired.
sharedCalled when a key-value pair is set on an entity on map spawn.
sharedCalled when an NW2Var is changed.
sharedCalled right before removal of an entity.
serverCalled when an entity is about to take damage.
sharedThis hook polls the entity the player use action should be applied to.
clientRuns when user cancels/finishes typing.
sharedCalled after GM:Move, applies all the changes from the CMoveData to the player.
clientCalled to allow override of the default Derma skin for all panels.
clientCalled when the mouse has been double clicked on any panel derived from CGModBase, such as the panel used by gui.EnableScreenClicker and the panel used by Panel:ParentToHUD.
clientCalled whenever a players presses a mouse key on the context menu in Sandbox or on any panel derived from CGModBase, such as the panel used by gui.EnableScreenClicker and the panel used by Panel:Pa...
clientCalled whenever a players releases a mouse key on the context menu in Sandbox or on any panel derived from CGModBase, such as the panel used by gui.EnableScreenClicker and the panel used by Panel:P...
shared, menuCalled when game content has been changed, for example an addon or a mountable game was (un)mounted.
serverAn internal function used to get an untranslated string to show in the kill feed as the entity's name.
serverCalled when a player takes damage from falling, allows to override the damage.
sharedCalled when the game(server) needs to update the text shown in the server browser as the gamemode.
clientAllows you to modify the Source Engine's motion blur shaders.
serverCalled to determine preferred carry angles for the entity.
clientReturns the color for the given entity's team.
clientReturns the team color for the given team index.
sharedOverride this hook to disable/change ear-grabbing in your gamemode.
serverCalled when an entity is released by a gravity gun.
serverCalled when an entity is picked up by a gravity gun.
serverCalled every tick to poll whether a player is allowed to pick up an entity with the gravity gun or not.
sharedCalled when an entity is about to be punted with the gravity gun (primary fire).
clientCalled when the client has picked up ammo.
clientRenders the HUD pick-up history.
clientCalled every frame to render the scoreboard.
clientCalled from GM:HUDPaint to draw player info when you hover over a player with your crosshair or mouse.
clientCalled when an item has been picked up.
clientCalled whenever the HUD should be drawn.
clientCalled before GM:HUDPaint when the HUD background is being drawn.
clientCalled when the Gamemode is about to draw a given element on the client's HUD (heads-up display).
clientCalled when a weapon has been picked up.
serverCalled to handle player armor reduction, when player receives damage.
sharedAllows to override player driving animations.
sharedAllows to override player crouch animations.
sharedCalled every frame by the player model animation system.
sharedCalled every frame by the player model animation system.
sharedAllows to override player noclip animations.
sharedAllows to override player swimming animations.
sharedAllows to override player flying ( in mid-air, not noclipping ) animations.
clientHides the team selection panel.
sharedCalled after all the entities are initialized.
sharedCalled after the gamemode loads and starts.
clientAllows you to modify the supplied User Command with mouse input.
serverCheck if a player can spawn at a certain spawnpoint.
sharedCalled whenever a player pressed a key included within the IN keys.
sharedRuns when a IN key was released by a player.
serverCalled from `gm_load` when the game should load a map.
menuCalled while an addon from the Steam workshop is downloading.
menuCalled when `menu.lua` has finished loading.
sharedOverride this gamemode function to disable mouth movement when talking on voice chat.
sharedThe Move hook is called for you to manipulate the player's MoveData.
clientReturning true in this hook will cause it to render depth buffers defined with render.GetResolvedFullFrameDepth.
clientCalled when an entity has been created over the network.
serverCalled when a player's SteamID has been validated by Steam.
clientCalled whenever this entity changes its transmission state for this Global.LocalPlayer, such as exiting or re entering the [PVS (Potential Visibility Set)](https://developer.valvesoftware.com/wiki/...
clientCalled when a player has achieved an achievement.
clientCalled when the local player presses TAB while having their chatbox opened.
clientCalled when the player cleans up something.
serverCalled on the server when a Lua error occurs on a client and is sent to the server.
clientCalled when a caption/subtitle has been emitted to the closed caption box.
clientCalled when the context menu keybind (+menu_context) is released, which by default is C.
clientCalled when the context menu keybind (`+menu_context`) is pressed, which by default is C .
sharedCalled when the crazy physics detection detects an entity with crazy physics, i.e.
serverCalled when a player has been hurt by an explosion.
sharedCalled as soon as the entity is created.
serverCalled when the Entity:WaterLevel of an entity is changed.
sharedCalled when the gamemode is loaded.
shared, menuCalled when a Lua error occurs.
serverCalled whenever an NPC drops an item upon its death, such as health kits, armor batteries, etc.
serverCalled whenever an NPC is killed.
menuCalled when a Addon Conflict occurs, only works in the Menu realm.
menuCalled when the main menu has been blocked by GM:OnPauseMenuShow four times in a small interval.
clientCalled when the pause menu is attempting to be opened.
menuCalled when a permission gets Granted or Revoked.
serverCalled when a player freezes an entity with the physgun.
serverCalled to when a player has successfully picked up an entity with their Physics Gun.
serverCalled when a player reloads with the physgun.
serverUse GM:PlayerChangedTeam instead, which works for every Player:SetTeam call.
clientCalled whenever a player sends a chat message.
sharedCalled when a player makes contact with the ground after a jump or a fall.
sharedCalled when a player jumps.
serverCalled when a player +use drops an entity.
serverCalled when a player +use pickups up an entity.

Prendi la lista intera

Questa pagina mostra una schermata alla volta. La lista completa è pubblicata in JSON, CSV e Markdown, senza JavaScript.

JSONCSVMarkdown

Cita questa lista

Raccolto da devtoolsgg.com dalle fonti qui sopra, sotto licenza CC BY 4.0.

  • Garry's Mod Wiki