core.plugins.generic.sh_init
Name: "sh_init.lua". Product: "CityRP 2 (Roleplay)".
- SharedIsPassiveDamageWeapon(class) → booleanSource ☍
-
Whether a weapon class is registered as a passive-damage tool. For callers holding a class but no reference to generic, such as a weapon checking itself.
Parameters
- classstringWeapon class name.
Returns
- booleanWhether the class is registered.
- SharedShouldBlockPassiveWeaponDamage(attacker, target) → booleanSource ☍
-
Check whether an attacker's active weapon is a passive tool that should not be allowed to damage the given target while the attacker lacks "w" access. Resolve prop_ragdoll targets to the player they represent before calling this.
Parameters
Returns
- booleanTrue if this damage should be voided.
- Sharedcityrp.accessnamesSource ☍
- SharedTEAMGROUPSSource ☍
- SharedTEAMGROUPS.ADMINISTRATIONSource ☍
- SharedTEAMGROUPS.GOVERNMENTSource ☍
- SharedTEAMGROUPS.LAWENFORCEMENTSource ☍
- SharedTEAMGROUPS.MAFIASource ☍
- SharedTEAMGROUPS.POLICESource ☍
- SharedTEAMGROUPS.PRESIDENTSource ☍
- SharedTEAMGROUPS.REBELSSource ☍
- SharedTEAMGROUPS.RESCUESource ☍
- SharedTEAMGROUPS.SECRET_SERVICESource ☍
- SharedTEAMGROUPS.SWATSource ☍
- SharedTEAM_PRESIDENTSource ☍
- SharedTEAM_VPSource ☍
- SharedTEAM_SSLSource ☍
- SharedTEAM_SSSource ☍
- SharedTEAM_GALSource ☍
- SharedTEAM_GASource ☍
- SharedTEAM_POLICECOMMANDERSource ☍
- SharedTEAM_POLICEOFFICERSource ☍
- SharedTEAM_FIRECHIEFSource ☍
- SharedTEAM_RESCUESource ☍
- SharedTEAM_FIREMANSource ☍
- SharedTEAM_PARAMEDICSource ☍
- SharedTEAM_NEXUSDESKSource ☍
- SharedTEAM_CITIZENSource ☍
- SharedTEAM_CHEFSource ☍
- SharedTEAM_DOCTORSource ☍
- SharedTEAM_ARMSDEALERSource ☍
- SharedTEAM_MECHANICSource ☍
- SharedTEAM_TAXISource ☍
- SharedTEAM_SECURITYSource ☍
- SharedTEAM_ANARCHISTSource ☍
- SharedTEAM_REBELLEADERSource ☍
- SharedTEAM_REBELSource ☍
- SharedTEAM_MAFIABOSSSource ☍
- SharedTEAM_MAFIASource ☍
- SharedTEAM_BLACKMARKETDEALERSource ☍
- SharedTEAM_AFKSource ☍