AllowInteriorWeapons
From SA-MP Wiki
AllowInteriorWeapons
With this function you can disable or enable the usage of weapons inside interiors, like Ammunation, the Stadiums etc.
(allow)
| allow | 1 to enable, 0 to disable interiors weapons (disabled by default). |
This function does not return a specific value, it's best to simply ignore it.
public OnGameModeInit() { // This will allow weapons inside interiors. AllowInteriorWeapons(1); return 1; }
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- SetPlayerInterior: Set a player's interior.
- GetPlayerInterior: Get a player's current interior.
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.
