FindModelFileNameFromCRC
From SA-MP Wiki
(Difference between revisions)
Revision as of 09:28, 31 December 2018 RoboN1X (Talk | contribs) (crc) ← Previous diff |
Revision as of 09:50, 31 December 2018 RoboN1X (Talk | contribs) (description) Next diff → |
||
Line 3: | Line 3: | ||
{{AddedIn|0.3.DL|R1|function}} | {{AddedIn|0.3.DL|R1|function}} | ||
- | {{Description|Find an existing custom [[AddCharModel|skin]] or simple [[AddSimpleModel|object]] collision file. The model files are located in server <tt>models</tt> directory.}} | + | {{Description|Find an existing custom [[AddCharModel|skin]] or simple [[AddSimpleModel|object]] collision file. The model files are located in <tt>models</tt> server folder by default ([[Server.cfg#Custom_models|artpath setting]]).}} |
{{Parameters|crc, retstr[], retstr_size}} | {{Parameters|crc, retstr[], retstr_size}} |
Revision as of 09:50, 31 December 2018
Description:
Find an existing custom skin or simple object collision file. The model files are located in models server folder by default (artpath setting).
(crc, retstr[], retstr_size)
crc | The CRC checksum of custom model file. |
retstr[] | An array into which to store the .dff file name, passed by reference. |
retstr_size | The length of the string that should be stored. |
Return Values:
- 1: The function executed successfully.
- 0: The function failed to execute.
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
Template:FindTextureFileNameFromCRC
Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.
Template:OnPlayerRequestDownload
- OnPlayerFinishedDownloading: Called when a player finishes downloading custom models.