FindTextureFileNameFromCRC
From SA-MP Wiki
(Difference between revisions)
Revision as of 09:27, 31 December 2018 RoboN1X (Talk | contribs) ← Previous diff |
Revision as of 09:29, 31 December 2018 RoboN1X (Talk | contribs) (parameters) Next diff → |
||
Line 6: | Line 6: | ||
{{Parameters|crc, retstr[], retstr_size}} | {{Parameters|crc, retstr[], retstr_size}} | ||
- | {{Param|crc|The [https://en.wikipedia.org/wiki/Cyclic_redundancy_check CRC] of custom model file name.}} | + | {{Param|crc|The [https://en.wikipedia.org/wiki/Cyclic_redundancy_check CRC] checksum of custom model file.}} |
- | {{Param|retstr[]|An array into which to store the '''.dff''' file name, passed by reference}} | + | {{Param|retstr[]|An array into which to store the '''.txd''' file name, passed by reference.}} |
{{Param|retstr_size|The length of the string that should be stored.}} | {{Param|retstr_size|The length of the string that should be stored.}} | ||
Revision as of 09:29, 31 December 2018
Description:
Find an existing custom skin or simple object texture file. The model files are located in server models directory.
(crc, retstr[], retstr_size)
crc | The CRC checksum of custom model file. |
retstr[] | An array into which to store the .txd 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:FindModelFileNameFromCRC
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.