AllowInteriorWeapons
From SA-MP Wiki
Description:
Toggle whether the usage of weapons in interiors is allowed or not.
(allow)
allow | 1 to enable weapons in interiors (enabled by default), 0 to disable weapons in interiors. |
Return Values:
This function does not return any specific values.
Example Usage:
public OnGameModeInit() { // This will allow weapons inside interiors. AllowInteriorWeapons(1); return 1; }
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- SetPlayerInterior: Set a player's interior.
- GetPlayerInterior: Get the current interior of a player.
Related Callbacks
The following callbacks might be useful, as they're related to this function in one way or another.
- OnPlayerInteriorChange: Called when a player changes interior.