SjoerdPSV Posted December 9, 2013 Share Posted December 9, 2013 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
Castillo Posted December 9, 2013 Share Posted December 9, 2013 And you set the script as client-side? Link to comment
SjoerdPSV Posted December 9, 2013 Author Share Posted December 9, 2013 And you set the script as client-side? Thanks for the quick response, I forgot that. Thanks for the help. Link to comment
Castillo Posted December 9, 2013 Share Posted December 9, 2013 Also, you can put them all inside one single function. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now