AR/setMarkerColor

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

هذه الدالة تعيين لون علامة محددة عن طريق تعديل قيم الأحمر والأخضر والأزرق.

Syntax

bool setMarkerColor ( marker theMarker, int r, int g, int b, int a )

OOP Syntax Help! I don't understand this!

Method: Marker:setColor(...)
Counterpart: getMarkerColor


Required Arguments

  • theMarker: The marker that you wish to set the color of.
  • r: كمية الأحمر في اللون النهائي (0 to 255).
  • g: كمية من اللون الأخضر في اللون النهائي (0 to 255).
  • b: كمية من اللون الأزرق في اللون النهائي(0 to 255).
  • a: كمية الشفافية في اللون النهائي مثال 0 = مخفي (0 to 255).

Example

newmarker = createMarker ( 1000, 1000, 1000, 1, 255, 0, 0, 255 )  -- إنشاء علامة حمراء
setMarkerColor ( newmarker, 0, 255, 0, 255 )                      -- تحويل العلامة الحمراء الى واحدة خضراء

See Also