Skip to content

Latest commit

 

History

History
365 lines (357 loc) · 5.64 KB

File metadata and controls

365 lines (357 loc) · 5.64 KB

-- this shall provide some useful commands --[[ include("NAME DES RELATIVEN DATEIPFADES") -- einfügen von abhängigkeiten

isValid()

ply: (https://github.com/Facepunch/garrysmod/blob/master/garrysmod/gamemodes/terrortown/gamemode/player.lua) (https://github.com/Facepunch/garrysmod/blob/master/garrysmod/gamemodes/terrortown/gamemode/player_ext_shd.lua) :GetPos() -- :GetCredits() -- credits from the player :GetEquipmentItems() -- items from the player :GetMaxHealth() :Health() :IsPlayer() -- KA wo ich das her hab :IsActive() -- Spieler noch am Leben? :IsTerror() -- Im Spiel? :IsSpec() -- Im Spectator :IsActiveDetective() :IsTraitor() :IsDeadTerror() :GetVelocity()

ragdolls: rag.player_ragdoll : bool -- true if player ragdoll else false

util.GetAlivePlayers() -- Alle lebenden Players

Helper: WEPS.TypeForWeapon(wep:GetClass()) == weptype

Eigenene Hooks Können mit: hook.Run("HOOK_NAME", parameter...)

ENT: :Initalize() -- Konstruktor funktionen??? self:Function() -- selbst aufruf ]]

HasEquipment GiveAmmo AllowImmediateDecalPainting Frags SetTeam SetNoCollideWithTeammates GetRole Kill Say AnimSetGestureSequence MetaBaseClass SetHoveredWidget DoSecondaryAttack GetInfo GetActiveWeapon GetAvoidDetective GetVehicle IsSuitEquipped SetStepSize **index SetFOV SpecDM_EnableUpdate HasEquipmentWeapon StartSprinting PacketLoss SetViewOffset StripAll ViewPunchReset GetCurrentCommand GetPunchAngle Freeze IsUserGroup ResetStatus GetAvoidPlayers SetHands GetViewOffsetDucked SetAllowFullRotation GetEyeTrace Ping GetAllowFullRotation SetAvoidPlayers DrawViewModel DetonateTripmines SprintDisable GetHands TraceHullAttack DrawWorldModel StripWeapons PrintMessage ShouldScore SetGhost WantsToDM **tostring SpecDM_Error SendEquipment GetAllowWeaponsInVehicle CanUseFlashlight UniqueID Give ResetEquipment AddBought SpawnForRound IsGhost AccountID ShouldDropWeapon GetTimeoutSeconds RemovePData SetAllowWeaponsInVehicle Crouching GodDisable AnimRestartMainSequence SetWeaponColor CanCarryWeapon GetCanWalk GetRagdollEntity ExitVehicle IsTyping SetHull SetLadderClimbSpeed GiveGhostWeapons GetWeapon ViewPunch GetEyeTraceNoCursor DoAttackEvent GetUseEntity HasGodMode GetViewPunchAngles StopZooming GetViewEntity GetLadderClimbSpeed SubtractCredits GetDetective IsTraitor IsBot StopSprinting UnfreezePhysicsObjects AddVCDSequenceToGestureSlot RemoveSuit GetName MetaName SetViewOffsetDucked IsDrivingEntity IsPlayer SetDrivingEntity ScreenFade GetInfoNum RecordKill IsActiveDetective HasBought CreateRagdoll IsFullyAuthenticated DisallowNoclip GetDrivingEntity GetUnDuckSpeed AllowFlashlight IsActive IsSuperAdmin RemoveAllItems StopWalking GetPreviousWeapon SetPData AddFrags IsTimingOut GetAimVector Ban GetViewModel EquipSuit KeyReleased KeyPressed SetSuitPower PhysgunUnfreeze AddDeaths SetNoTarget PickupObject GetPreferredCarryAngles AnimSetGestureWeight LagCompensation GetShootPos Team StripAmmo RemoveAmmo Alive SimulateGravGunPickup SpecDM_CheckKillRows SetEyeAngles IsWorldClicking SetUnDuckSpeed GetSuitPower IsDetective SwitchToDefaultWeapon StartWalking UniqueIDTable SetArmor GetNoCollideWithTeammates SetLastHitGroup Flashlight InVehicle KillSilent GetLaggedMovementValue SetDuckSpeed ResetViewRoll IsFrozen GetObserverMode SetMaxSpeed GetRoleStringRaw TimeConnected GetMaxSpeed __newindex EnterVehicle SetCrouchedWalkSpeed SetLaggedMovementValue RemoveAllAmmo Kick SetDSP Spectate DropObject Lock KickBan SetMaxArmor InitialSpawn PlayStepSound SetSuppressPickupNotices KeyDownLast ShouldSpawn AnimPerformGesture SetCredits ResetLastWords SetSpeed OwnerSteamID64 GetWeaponColor ResetRoundFlags ResetBought IsActiveRole SendBought SelectWeapon SetViewPunchAngles SendCredits GetForceSpec IsListenServerHost GetRunSpeed SetDefaultCredits IsSpec GiveEquipmentItem SetCleanRound GetClassID GetCleanRound SetDamageFactor GetDamageFactor SetAmmo SetForceSpec SetLiveKarma GetLiveKarma GetObserverTarget GetRagdollSpec GetHoveredWidget SendLastWords GetSlowWalkSpeed ManageGhost HasEquipmentItem IPAddress SetObserverMode GetBaseKarma GetCredits DropNamedWeapon IsDeadTerror CanCarryType DoCustomAnimEvent CrosshairEnable GetEquipmentItems GetRoleString IsActiveSpecial SteamID64 IsActiveTraitor IsRole GodEnable GetTraitor SetRole AddCredits SetHullDuck IsTerror UnLock SprayDecal SetCanWalk query SetSlowWalkSpeed SetJumpPower GetCanZoom DisallowSpawning AddFrozenPhysicsObject SteamID GetHullDuck UserID GetViewPunchVelocity CheckGroup GetHull SetUserGroup SprintEnable SetViewEntity SetDeaths LastHitGroup AddEquipmentItem IsSpecial GetAmmo StripWeapon IsSprinting GetWeapons ResetHull IsConnected GetViewOffset SetClassID SetFrags GetFOV GetEntityInUse SetPlayerColor ChatPrint PickupWeapon CrosshairDisable Armor GetMaxArmor GetDuckSpeed AnimResetGestureSlot IsAdmin SimulateGravGunDrop HasWeapon InitKarma Name GetPlayerColor DoReloadEvent MetaID SpectateEntity SetPressedWidget DoAnimationEvent SetRenderAngles GetRenderAngles GetWalkSpeed GetCrouchedWalkSpeed GetJumpPower SetViewPunchVelocity DropWeapon SetRunSpeed SendLua SetWalkSpeed DisallowVehicles GetDrivingMode GetAmmoCount SetupHands GetCurrentViewOffset GetPData FlashlightIsOn IsPlayingTaunt GetPressedWidget MotionSensorPos GetUserGroup SetBaseKarma Nick AnimRestartGesture TranslateWeaponActivity DebugInfo SetCurrentViewOffset KeyDown GetStepSize SetActiveWeapon SetCanZoom UnSpectate ConCommand SetRagdollSpec Deaths