.:HyPeX:. Posted February 16, 2015 Share Posted February 16, 2015 Hello guys, i've got an issue, apparently the race_client is trying to call 'table.create' from utils_client and the function appears to not be loaded (Even thought the race meta specifys that race_client is loaded after) Only change i did to the race (Before it was working perfectly) was adding some extra things to the race_client, wich do not interfer with the race itself, but still are a lot of lines. (I dont belive a bigger file will cause issues, but who knows if it is?) I tried making it start on resource start instead of direct code, but another error appears and the countdown never starts. (I'm set as not ready) addEventHandler('onClientResourceStart',resourceRoot,function() g_ArmedVehicleIDs = table.create({ 425, 447, 520, 430, 464, 432 }, true) g_WaterCraftIDs = table.create({ 539, 460, 417, 447, 472, 473, 493, 595, 484, 430, 453, 452, 446, 454 }, true) end) The errors are: - Start spamming error "isPlayerRaceDead (a nil value)" <- The function IS there... - Then spams the previous error + "isPlayerFinished (a nil value)" <- Function exists aswell... http://i.imgur.com/nblmwkz.png Greetz Link to comment
..:D&G:.. Posted February 16, 2015 Share Posted February 16, 2015 Are you exporting the function using "exports"? If so, have you added the export name in the resource's meta? Link to comment
.:HyPeX:. Posted February 16, 2015 Author Share Posted February 16, 2015 [quote name=..&G:..]Are you exporting the function using "exports"? If so, have you added the export name in the resource's meta? All what i'm doing is inside the Race, and even more, the errors spammed are from the race_client itself (Within the same file). Link to comment
..:D&G:.. Posted February 16, 2015 Share Posted February 16, 2015 Try making a separate function with a command and a chatbox: function test(thePlayer) outputChatBox(type(isPlayerRaceDead(thePlayer))) end addCommandHandler("test12", test) And see what it returns. 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