RO/CreatePed: Difference between revisions
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{Server client function}} | {{Server client function}} | ||
Pagină creată de Axel/Șerbănescu Gabriel | |||
==Syntaxă== | ==Syntaxă== | ||
<section name="Server" class="server" show="true"> | <section name="Server" class="server" show="true"> | ||
Line 31: | Line 32: | ||
===Returns=== | ===Returns=== | ||
Returns a ped element if it was successfully created. | Returns a ped element if it was successfully created. | ||
Revision as of 13:02, 29 October 2013
Pagină creată de Axel/Șerbănescu Gabriel
Syntaxă
Click to collapse [-]
Serverped 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 [-]
Clientped 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.