Jump to content

Help me get rid of these warnings


roaddog

Recommended Posts

Posted (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 by Guest
Posted

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.

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

Posted

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.

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