Edi Posted July 16, 2022 Share Posted July 16, 2022 [14:08:21] WARNING: vehicle-manager/vehicle-library/s_vehicle_library.lua:15: Access denied @ 'restartResource' [14:08:21] ERROR: logs/s_logs.lua:105: call: failed to call 'mysql:lazyQuery' [string "?"] This is the error I receive. Link to comment
Shady1 Posted July 16, 2022 Share Posted July 16, 2022 hey Welcome Forum,If you show your code we can better help. 1 Link to comment
Edi Posted July 16, 2022 Author Share Posted July 16, 2022 here is error from logs/s_logs.lua local r = getRealTime() local timeString = ("%04d-%02d-%02d %02d:%02d:%02d"):format(r.year+1900, r.month + 1, r.monthday, r.hour,r.minute, r.second) exports.mysql:lazyQuery("INSERT INTO `logtable` VALUES ('"..timeString.."', '".. exports.mysql:escape_string(actionStr) .."', '".. exports.mysql:escape_string(sourceStr).."', '".. exports.mysql:escape_string(affectedStr).."', '".. exports.mysql:escape_string(data).."')") return true end here is error from vehicle-manager/vehicle-library/s_vehicle_library.lua function refreshCarShop() local theResource = getResourceFromName("carshop-system") if theResource then local hiddenAdmin = getElementData(client, "hiddenadmin") if getResourceState(theResource) == "running" then restartResource(theResource) outputChatBox("Carshops were restarted.", client, 0, 255, 0) if hiddenAdmin == 0 then exports.global:sendMessageToAdmins("[VEHICLE MANAGER]" .. getPlayerName(client) .. " restarted the carshops.") else exports.global:sendMessageToAdmins("[VEHICLE MANAGER] A hidden admin restarted the carshops.") end Link to comment
Mkl Posted July 16, 2022 Share Posted July 16, 2022 (edited) Hi, acces denied error means you have to give ACL rights to the resource : open ACL.xml, add <object name="resource.vehicle-manager"></object> in Admin ACL group (or use Admin resource to do it). Second error is about exported function of "mysql" resource not being recognized. Does this resource exist on your server ? Edited July 16, 2022 by Mkl 1 Link to comment
Edi Posted July 16, 2022 Author Share Posted July 16, 2022 I fixed that error with acl and now vehlibrary is 100% functional, thanks. but I don't know what the resource is and where I should find it 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