Decorator::decorRegister

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Found this in standard_global_init.c4 line 1898

void sub_523a() {
DECORATOR::DECOR_REGISTER('Player_Vehicle', 3);
DECORATOR::DECOR_REGISTER('PV_Slot', 3);
DECORATOR::DECOR_REGISTER('Previous_Owner', 3);
DECORATOR::DECOR_REGISTER('Sprayed_Vehicle_Decorator', 2);
DECORATOR::DECOR_REGISTER('Sprayed_Vehicle_Timer_Dec', 5);
DECORATOR::DECOR_REGISTER('Vehicle_Reward', 3);
DECORATOR::DECOR_REGISTER('Vehicle_Reward_Teams', 3);
DECORATOR::DECOR_REGISTER('Skill_Blocker', 2);
DECORATOR::DECOR_REGISTER('TargetPlayerForTeam', 3);
DECORATOR::DECOR_REGISTER('XP_Blocker', 2);
DECORATOR::DECOR_REGISTER('CrowdControlSetUp', 3);
DECORATOR::DECOR_REGISTER('Bought_Drugs', 2);
DECORATOR::DECOR_REGISTER('HeroinInPossession', 1);
DECORATOR::DECOR_REGISTER('CokeInPossession', 1);
DECORATOR::DECOR_REGISTER('WeedInPossession', 1);
DECORATOR::DECOR_REGISTER('MethInPossession', 1);
DECORATOR::DECOR_REGISTER('bombdec', 3);
DECORATOR::DECOR_REGISTER('bombdec1', 3);
DECORATOR::DECOR_REGISTER('bombowner', 3);
DECORATOR::DECOR_REGISTER('noPlateScan', 2);
DECORATOR::DECOR_REGISTER('prisonBreakBoss', 2);
DECORATOR::DECOR_REGISTER('cashondeadbody', 3);
DECORATOR::DECOR_REGISTER('MissionType', 3);
DECORATOR::DECOR_REGISTER('MatchId', 3);
DECORATOR::DECOR_REGISTER('TeamId', 3);
DECORATOR::DECOR_REGISTER('Not_Allow_As_Saved_Veh', 3);
DECORATOR::DECOR_REGISTER('Veh_Modded_By_Player', 3);
DECORATOR::DECOR_REGISTER('MPBitset', 3);
DECORATOR::DECOR_REGISTER('MC_EntityID', 3);
DECORATOR::DECOR_REGISTER('MC_ChasePedID', 3);
DECORATOR::DECOR_REGISTER('MC_Team0_VehDeliveredRules', 3);
DECORATOR::DECOR_REGISTER('MC_Team1_VehDeliveredRules', 3);
DECORATOR::DECOR_REGISTER('MC_Team2_VehDeliveredRules', 3);
DECORATOR::DECOR_REGISTER('MC_Team3_VehDeliveredRules', 3);
DECORATOR::DECOR_REGISTER('AttributeDamage', 3);
DECORATOR::DECOR_REGISTER('GangBackup', 3);
DECORATOR::DECOR_REGISTER('CreatedByPegasus', 2);
DECORATOR::DECOR_REGISTER('BeforeCorona_0', 2);
}

-----------------------------------------------------------------------
Defines type of property for property name.

1 - float,
2 - bool,
3 - int
5 - time

Syntax

mp.game.decorator.decorRegister(propertyName, type);

Required Arguments

  • propertyName: String
  • type: int

Return value

  • Undefined

Example

// todo

See also

Template:Decorator s function c