跳到主要内容

AllowInteriorWeapons

Description

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

NameDescription
bool:allow'true' to enable weapons in interiors (enabled by default), 'false' to disable weapons in interiors.

Returns

This function does not return any specific values.

Examples

public OnGameModeInit()
{
// This will allow weapons inside interiors.
AllowInteriorWeapons(true);
return 1;
}

Notes

注意

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

提示

You can also toggle interior weapons via config.json

"allow_interior_weapons": true,