Jump to content

[Help]Customblips


SjoerdPSV

Recommended Posts

Hello,

I wanted to add a custom blip for my fuel system, so I made a new file, called blips.lua. Here's the code:

addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), 
    function() 
        exports["customblips"]:createCustomBlip ( -2024.2071533203, 156.86796569824, 10, 10, "icon.png", 500 ) 
    end 
) 
  
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), 
    function() 
    exports["customblips"]:createCustomBlip ( 2114.6799316406, 920.03802490234, 10, 10, "icon.png", 500 ) 
    end 
) 
  
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), 
    function() 
        exports["customblips"]:createCustomBlip ( 2639.9396972656, 1106.4301757813, 10, 10, "icon.png", 500 ) 
    end 
) 
  
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), 
    function() 
        exports["customblips"]:createCustomBlip ( 2147.025390625, 2747.4851074219, 10, 10, "icon.png", 500 ) 
    end 
) 
  
  

But in-game the blips doesn't show up. I added the script, the icon in the meta file.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...