open.mp | AllowInteriorWeapons
  • Home
  • FAQ
  • Forum
  • Servers
  • Docs
  • Blog
  • Login
  • Englishاللغة العربيةar-TNবাংলাbosanski jezikDeutschΕλληνικάEspañoleestiفارسیFrançaisHrvatskimagyarBahasa IndonesiaItaliano日本語ქართულიlietuvių kalbaNederlandsNorskjęzyk polskiPortuguêsRomânăРусскийslovenski jezikсрпски језикไทยWikang TagalogTürkçeУкраїнськаاردوTiếng Việt简体中文繁體中文
warning Not Translated

This page has not been translated into the language that your browser requested. The English content is being shown as a fallback.

If you want to contribute a translation for this page then please click here.

AllowInteriorWeapons

Description

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

NameDescription
allow1 to enable weapons in interiors (enabled by default), 0 to disable weapons in interiors.

Returns

This function does not return any specific values.

Examples

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

Notes

warning

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

Related Functions

  • SetPlayerInterior: Set a player's interior.
  • GetPlayerInterior: Get the current interior of a player.
  • OnPlayerInteriorChange: Called when a player changes interior.

Community

  • Discord
  • Instagram
  • Twitter
  • Twitch
  • YouTube
  • Facebook
  • VK

More

  • SA-MP
  • Blog
  • GitHub