AllowInteriorWeapons

From SA-MP Wiki

Jump to: navigation, search


Image:32px-Circle-style-warning.png

Warning

This function does not work in the current SA:MP version!


Description:

Toggle whether the usage of weapons in interiors is allowed or not.


Parameters:
(allow)
allow1 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.


Related Callbacks

The following callbacks might be useful, as they're related to this function in one way or another.