Jump to content

Help me get rid of these warnings


roaddog

Recommended Posts

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 by Guest
Link to comment

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

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...