SetWeaponRenderEnabled
Jump to navigation
Jump to search
Tip: You can use it for example with optimized bone_attach resource called pAttach. |
Syntax
bool setWeaponRenderEnabled ( bool enabled )
Required Arguments
- enabled: Whether weapon render should be enabled.
Returns
Always returns true.
Example
This example disables weapon rendering once resource has started.
function onClientResourceStartDisableWeaponRender() setWeaponRenderEnabled(false) end addEventHandler("onClientResourceStart", resourceRoot, onClientResourceStartDisableWeaponRender)
See Also
- Shared
- getWeaponProperty
- getPickupWeapon
- getOriginalWeaponProperty
- getSlotFromWeapon
- getWeaponIDFromName
- getWeaponNameFromID
- setWeaponAmmo
- setWeaponProperty