Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0301· openaiHugging Face Suzhen/CodeChat

fivem scripting how can i draw an 'A' symbol and also a 'B' symbol

  1. User

    fivem scripting how can i draw an 'A' symbol and also a 'B' symbol

  2. Assistant

    To draw an 'A' symbol in FiveM, you can use the DrawSprite native function with the hash of the texture for the 'A' symbol. Here's an example:

    local aHash = GetHashKey("mpcarhud_1")
    DrawSprite("mpleaderboard", "mp_0_mothership", 0.5, 0.5, 0.1, 0.1, 0.0, 255, 255, 255, 255)
    

    To draw a 'B' symbol, you can use the same method but with the hash of the texture for the 'B' symbol. Here's an example:

    local bHash = GetHashKey("mpcarhud_2")
    DrawSprite("mpleaderboard", "mp_0_mothership", 0.5, 0.5, 0.1, 0.1, 0.0, 255, 255, 255, 255)
    

    Make sure to replace the texture hash with the correct one for your desired symbol.