Rage-Modding-Collective / RDR1-Example-Script

An example script for the RDR1 Pc remake based on ScriptHookRDR1
MIT License
6 stars 0 forks source link

How to register font ? #2

Open 3DMXM opened 3 weeks ago

3DMXM commented 3 weeks ago

My code script.cpp:

int Initfont()
{
    const char *fontPath = "GlossTrainer\\msyh.ttc";
    float fontSize = 72.0f;
    int fontId = registerFont(fontPath, fontSize);
    return fontId;
}

Get error:

[16:44:9] [SCRIPT] GlossTrainer.asi -> loaded
[16:44:9] [SCRIPTS] Starting TRAFFICDEBUGTHREAD thread for F:\Games\RDR\Games\Red Dead Redemption\GlossTrainer.asi with Id 42
[16:44:22] [Error] [Invoker] Failed to find cmd for native 0xD8FA6417
3DMXM commented 3 weeks ago

Directory Structure: