HeK Posted January 3, 2012 Share Posted January 3, 2012 (edited) Im using the "CustomBlips" resource, but it has some errors, i placed the "icon.png" in the meta and made this lua. addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), function() exports.customblips:createCustomBlip ( 2236.345703125,2458.1728515625, 20, 20, "icon.png" ) end ) The ERRORS: ERROR: customblips\imagelib.lua:144: dxDrawImage can't load file WARNING: Loading script failed: [scripts]\customblips\icon.png:1: unexpected symbol near 'ô' Edited January 3, 2012 by Guest Link to comment
bandi94 Posted January 3, 2012 Share Posted January 3, 2012 i am not shure but i think is something whit your meta file or your script , icon file contains in name some unexpected simbol like :,. "space" and more Link to comment
Kenix Posted January 3, 2012 Share Posted January 3, 2012 Try addEventHandler ( "onClientResourceStart",resourceRoot, function() exports.customblips:createCustomBlip ( 2236.345703125,2458.1728515625, 20, 20, "icon.png" ) end ) if it not working show meta.xml Link to comment
HeK Posted January 3, 2012 Author Share Posted January 3, 2012 <script src="icon.png" /> Oh im so stupid. Yeah i found it. I put script instead of file. Thanks. Link to comment
FatalTerror Posted January 3, 2012 Share Posted January 3, 2012 <script src="icon.png" /> Oh im so stupid. Yeah i found it. I put script instead of file. Thanks. I do it every time ... Link to comment
HeK Posted January 3, 2012 Author Share Posted January 3, 2012 Big difference from an image file to a script ._. i gotta pay more attention. 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