RO/CreatePed: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 4: Line 4:
<syntaxhighlight lang="lua">ped createPed ( int modelid, float x, float y, float z [, float rot = 0.0, bool synced = true ] )</syntaxhighlight>  
<syntaxhighlight lang="lua">ped createPed ( int modelid, float x, float y, float z [, float rot = 0.0, bool synced = true ] )</syntaxhighlight>  


===Required Arguments===  
===Argumente Necesare===  
*'''modelid:''' A whole integer specifying the [[Character_Skins|GTASA skin ID]].
*'''modelid:''' Un integer specificând skin-ul de la pagina [[Character_Skins|GTASA skin ID]].
*'''x:''' A floating point number representing the X coordinate on the map.
*'''x:''' Un număr reprezentând coordonata X de pe hartă.
*'''y:''' A floating point number representing the Y coordinate on the map.
*'''y:''' Un număr reprezentând coordonata Y de pe hartă.
*'''z:''' A floating point number representing the Z coordinate on the map.
*'''z:''' Un număr reprezentând coordonata Z de pe hartă.


==Optional Arguments==
==Argumene Opționale==
{{OptionalArg}}
{{OptionalArg}}
*'''rot:''' A floating point number representing the rotation in degrees.  
*'''rot:''' Un număr reprezentând rotația în grade.  
*'''synced:''' A boolean value representing whether or not the ped will be synced. Disabling the sync might be useful for frozen or static peds to increase the server performance.
*'''synced:''' A boolean value representing whether or not the ped will be synced. Disabling the sync might be useful for frozen or static peds to increase the server performance.
</section>
</section>

Revision as of 12:57, 29 October 2013

Syntaxă

Click to collapse [-]
Server
ped createPed ( int modelid, float x, float y, float z [, float rot = 0.0, bool synced = true ] )

Argumente Necesare

  • modelid: Un integer specificând skin-ul de la pagina GTASA skin ID.
  • x: Un număr reprezentând coordonata X de pe hartă.
  • y: Un număr reprezentând coordonata Y de pe hartă.
  • z: Un număr reprezentând coordonata Z de pe hartă.

Argumene Opționale

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.

  • rot: Un număr reprezentând rotația în grade.
  • synced: A boolean value representing whether or not the ped will be synced. Disabling the sync might be useful for frozen or static peds to increase the server performance.
Click to collapse [-]
Client
ped createPed ( int modelid, float x, float y, float z [, float rot = 0.0 ] )

Required Arguments

  • modelid: A whole integer specifying the GTASA skin ID.
  • x: A floating point number representing the X coordinate on the map.
  • y: A floating point number representing the Y coordinate on the map.
  • z: A floating point number representing the Z coordinate on the map.

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.

  • rot: A floating point number representing the rotation in degrees.

Returns

Returns a ped element if it was successfully created.