AR/setBlipIcon: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Jafar (talk | contribs)
Created page with "__NOTOC__ {{Server client function}} تقوم الوظيفة بتعيين رمز للعلامة ==Syntax== <syntaxhighlight lang="lua">bool setBlipIcon ( blip theBlip, int icon )</syntaxhighlight> ===R..."
 
Jafar (talk | contribs)
No edit summary
 
Line 3: Line 3:
تقوم الوظيفة بتعيين رمز للعلامة
تقوم الوظيفة بتعيين رمز للعلامة


==Syntax==  
==تركيب الجملة البرمجية==  
<syntaxhighlight lang="lua">bool setBlipIcon ( blip theBlip, int icon )</syntaxhighlight>
<syntaxhighlight lang="lua">bool setBlipIcon ( blip theBlip, int icon )</syntaxhighlight>


===Required Arguments===  
===مطلوب===  
*'''theBlip''' العلامة المُراد تغير رمزها.
*'''theBlip''' العلامة المُراد تغير رمزها.
*'''icon:''' رقم الرمز:
*'''icon:''' رقم الرمز:
Line 14: Line 14:
Returns ''true'' if the icon was succesfully set, ''false'' if the element passed was not a valid blip or the icon value was not a valid icon number.
Returns ''true'' if the icon was succesfully set, ''false'' if the element passed was not a valid blip or the icon value was not a valid icon number.


==Example==  
==مثال==  
جلب جميع البلبات ووضع رمزهم 0
جلب جميع البلبات ووضع رمزهم 0
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
Line 25: Line 25:
</syntaxhighlight>
</syntaxhighlight>


==See Also==
==انظر ايضاً==
{{AR/Blip_functions}}
{{AR/Blip_functions}}


[[en:setBlipIcon]]
[[en:setBlipIcon]]

Latest revision as of 10:14, 3 January 2014

تقوم الوظيفة بتعيين رمز للعلامة

تركيب الجملة البرمجية

bool setBlipIcon ( blip theBlip, int icon )

مطلوب

  • theBlip العلامة المُراد تغير رمزها.
  • icon: رقم الرمز:
  • 0: Marker       If higher than player:   If lower than player:
  • 1: White_square Note: it's actually white, darkened for display here
  • 2: Centre
  • 3: Map_here
  • 4: North
  • 5: Airyard
  • 6: Gun
  • 7: Barbers
  • 8: Big_smoke
  • 9: Boatyard
  • 10: Burgershot
  • 11: Bulldozer
  • 12: Cat_pink
  • 13: Cesar
  • 14: Chicken
  • 15: Cj
  • 16: Crash1
  • 17: Diner
  • 18: Emmetgun
  • 19: Enemyattack
  • 20: Fire
  • 21: Girlfriend
  • 22: Hospital
  • 23: Loco
  • 24: Madd Dogg
  • 25: Mafia
  • 26: Mcstrap
  • 27: Mod_garage
  • 28: Ogloc
  • 29: Pizza
  • 30: Police
  • 31: Property_green
  • 32: Property_red
  • 33: Race
  • 34: Ryder
  • 35: Savehouse
  • 36: School
  • 37: Mystery
  • 38: Sweet
  • 39: Tattoo
  • 40: Truth
  • 41: Waypoint
  • 42: Toreno_ranch
  • 43: Triads
  • 44: Triads_casino
  • 45: Tshirt
  • 46: Woozie
  • 47: Zero
  • 48: Date_disco
  • 49: Date_drink
  • 50: Date_food
  • 51: Truck
  • 52: Cash
  • 53: Flag
  • 54: Gym
  • 55: Impound
  • 56: Runway_light
  • 57: Runway
  • 58: Gang_b
  • 59: Gang_p
  • 60: Gang_y
  • 61: Gang_n
  • 62: Gang_g
  • 63: Spray

Returns

Returns true if the icon was succesfully set, false if the element passed was not a valid blip or the icon value was not a valid icon number.

مثال

جلب جميع البلبات ووضع رمزهم 0

for blipKey, blipValue in ipairs( getElementsByType ( "blip" ) ) do -- نعمل لوب لجلب جميع العلامات
	blipIcon = getBlipIcon ( blipValue ); -- جلب رمز العلامة عن طريق وظيفة getBlipIcon
	if ( blipIcon ~= 0 ) then -- نتحقق أن العلامة لا تساوي القيمة الإفتراضية '0'
		setBlipIcon ( blipValue, 0 ); -- نجعل رمز العلامة '0'
	end -- إغلاق if
end -- إغلاق loop

انظر ايضاً