AR/createBlip: Difference between revisions
mNo edit summary |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 26: | Line 26: | ||
{{New feature/item|3|1.0|| | {{New feature/item|3|1.0|| | ||
*'''ordering:''' This defines the blip's Z-level ordering (-32768 - 32767). Default is 0. | *'''ordering:''' This defines the blip's Z-level ordering (-32768 - 32767). Default is 0. | ||
*'''visibleDistance:''' The maximum distance from the camera at which the blip is still visible | *'''visibleDistance:''' The maximum distance from the camera at which the blip is still visible|AR | ||
}} | }} | ||
*'''visibleTo:''' What elements can see the blip. Defaults to visible to everyone. See [[visibility]]. | *'''visibleTo:''' What elements can see the blip. Defaults to visible to everyone. See [[visibility]]. | ||
Line 52: | Line 52: | ||
{{New feature/item|3|1.0|| | {{New feature/item|3|1.0|| | ||
*'''ordering:''' This defines the blip's Z-level ordering (-32768 - 32767). Default is 0. | *'''ordering:''' This defines the blip's Z-level ordering (-32768 - 32767). Default is 0. | ||
*'''visibleDistance:''' The maximum distance from the camera at which the blip is still visible | *'''visibleDistance:''' The maximum distance from the camera at which the blip is still visible|AR | ||
}} | }} | ||
</section> | </section> | ||
Line 87: | Line 87: | ||
{{AR/Blip_functions}} | {{AR/Blip_functions}} | ||
[[ | [[EN:createBlip]] | ||
[[HU:createBlip]] | |||
[[ES:CreateBlip]] | |||
[[IT:createBlip]] | |||
[[DE:createBlip]] | |||
[[PL:createBlip]] | |||
[[RO:createBlip]] |
Latest revision as of 15:06, 11 June 2023
هذه الوظيفة تقوم بعمل أيقونة في الخريطة تراها في الرادار مثل الأيقونات الموجوده على الاعبين
Syntax
blip createBlip ( float x, float y, float z, [int icon=0, int size=2, int r=255, int g=0, int b=0, int a=255, int ordering=0, float visibleDistance=99999.0, visibleTo = getRootElement()] )
Required Arguments
- x: للأيقونة x احداثيات الـ
- y: للأيقونة y احداثيات الـ
- z: للأيقونة z احداثيات الـ
Optional Arguments
NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.
- 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
- size: حجم العلامة و الحجم الافتراضي 2
- r: مقدار لون العلامة الاحمر من 0 الى 255. المقدار الافتراضي هو 255
- g: مقدار لون العلامة الاخضر من 0 الى 255. المقدار الافتراضي هو 0
- b: مقدار لون العلامة الازرق من 0 الى 255. المقدار الافتراضي هو 0
- a: مقدار الوضوح للعلامة من 0 الى 255. المقدار البدائي هو 255
- ordering: This defines the blip's Z-level ordering (-32768 - 32767). Default is 0.
- visibleDistance: The maximum distance from the camera at which the blip is still visible
- visibleTo: What elements can see the blip. Defaults to visible to everyone. See visibility.
blip createBlip ( float x, float y, float z, [int icon=0, int size=2, int r=255, int g=0, int b=0, int a=255, int ordering=0, float visibleDistance ] )
Required Arguments
- x: للأيقونة x احداثيات الـ
- y: للأيقونة y احداثيات الـ
- z: للأيقونة z احداثيات الـ
Optional Arguments
NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.
- 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
- size: حجم العلامة و الحجم الافتراضي هو 2
- r: مقدار لون العلامة الاحمر من 0 الى 255. المقدار الافتراضي هو 255
- g: مقدار لون العلامة الاخضر من 0 الى 255. المقدار الافتراضي هو 0
- b: مقدار لون العلامة الازرق من 0 الى 255. المقدار الافتراضي هو 0
- a: مقدار الوضوح للعلامة من 0 الى 255. المقدار البدائي هو 255
- ordering: This defines the blip's Z-level ordering (-32768 - 32767). Default is 0.
- visibleDistance: The maximum distance from the camera at which the blip is still visible
Returns
Returns an element of the blip if it was created successfully, false otherwise.
مثال
Example 1: هذا المثال تقوم بصنع علامة على لاعب عشوائي يتظهر العلامة للاعب فقط
myPlayer = getRandomPlayer () -- احضار لاعب عشوائي x,y,z = getElementPosition ( myPlayer ) -- حضار احداثيات الاعب myBlip = createBlip ( x, y, z, 52, 0, 0, 0, 255, myPlayer ) -- صنع علامة نقود على احداثيات الاعب
Example 2: This example attaches a blip to a player. You can attach a blip to an element by just setting the blip's parent to that element.
-- Pick a random player myPlayer = getRandomPlayer () -- Create a radar blip in the middle of the map myBlip = createBlip ( 0, 0, 0 ) -- Make the player the parent of the blip, so that the blip follows the player around setElementParent ( myBlip, myPlayer )
Example 3: هذا المثال يقول بصنع علامة في احداثيات 0,0,0
createBlip ( 0 , 0 , 0 , 37 ) -- صنع علامة في احداثيات 0,0,0