roaddog Posted June 17, 2016 Share Posted June 17, 2016 (edited) So i used other resource file path to keep it low size but everytime i join game i got this warning Bad file path [:resourcename/fonts/something.ttf] The line in script i just put in on top like local font = guiCreateFont(":resourcename/fonts/something.ttf") Soo how to get rid of this warning. should i check if the resourcename is running? Edited June 18, 2016 by Guest Link to comment
Noki Posted June 18, 2016 Share Posted June 18, 2016 Check if the resource the file is in is running, and check if the file exists. Link to comment
roaddog Posted June 18, 2016 Author Share Posted June 18, 2016 File exists, if i check the resource running or not, i think will do it, But why would it giving me warnings eventho its already running? is it because the resource file isnt ready? Ps. It happens on join. Link to comment
1LoL1 Posted June 18, 2016 Share Posted June 18, 2016 local font = guiCreateFont(":resourcename/fonts/something.ttf") Link to comment
roaddog Posted June 18, 2016 Author Share Posted June 18, 2016 local font = guiCreateFont(":resourcename/fonts/something.ttf") Lol sorry i forgot the strings in op but i got correct in script. The warning only happend on join and it randomly show up. Link to comment
roaddog Posted June 22, 2016 Author Share Posted June 22, 2016 Update for this I added this if getResourceState(getResourceFromName(stringResource)) == "running" then But i got warning expected resourcedata at arg 1 got boolean. Im using onClientResourceStart event and resourceRoot. This happens on join. The resource is running ofc. 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