EnableInteriorProp

From GT-MP
Jump to: navigation, search
EnableInteriorProp
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript

See also: DisableInteriorProp, IsInteriorPropEnabled

Syntax

API.enableInteriorProp(int interiorId, string propName);

Required Arguments

Usage example(s)

Code below will enable the upgraded Cocaine Factory interior.

API.onResourceStart.connect(function() {
	API.enableInteriorProp(247553, "coke_cut_01");
	API.enableInteriorProp(247553, "coke_cut_02");
	API.enableInteriorProp(247553, "coke_cut_03");
	API.enableInteriorProp(247553, "coke_cut_04");
	API.enableInteriorProp(247553, "coke_cut_05");
	API.enableInteriorProp(247553, "coke_press_upgrade");
	API.enableInteriorProp(247553, "equipment_upgrade");
	API.enableInteriorProp(247553, "production_upgrade");
	API.enableInteriorProp(247553, "security_high");
	API.enableInteriorProp(247553, "set_up");
	API.enableInteriorProp(247553, "table_equipment_upgrade");
});
Dialog-warning.png

Note: You Could find here or here a list with interior Props.


References