Quick question, how do you configure the checkpoint to check for a certain item(id) on the players inventory?
Hi, someone know how I can get all item from an other table please ? I would like to see them in the inventory
Somebody Can give me vkd_inventory with use and Remove item button pleaze (for est and drink)
Hi,
How can i call inventory by an other menu please ?
thx
Hello, I would like to know how to simply throw away items. We can give but not throw away.
Update 03/06/2017
-
It’s not only an inventory but more a personal menu. You can access to the inventory but also to animations menu and give money to near player.
-
I also made a system of temporary items to limit SQL queries. Change the
refreshTimer
like you want -
I add the usable items system : in
items
table I addcanUse
column (for now 1 is for drink, 2 is for eat) -
I also include the MySQL Async library, thanks to @Brouznouf
I wait yourfeedbacks and your ideas for improvements
Really good update !!! but why when we press enter in the inventory, the menu disappear like before?
Your inventory is empty ?
I think I just fixed this, you can retest
You can add push ups anim
FR :
Menu.addButton("Faire des pompes", "animsActionScenario", { anim = "WORLD_HUMAN_PUSH_UPS" })
EN :
Menu.addButton("Push Ups", "animsActionScenario", { anim = "WORLD_HUMAN_PUSH_UPS" })
yes my inventory is emptu when its happening
Ok it’s fixed, you can redownload my release
Okay thanks a lot
I have an error can you help me pls ?
2017-06-03 18:22:07.7176|ERROR|CitizenMP.Server|Error executing event handler for event item:getItems in resource vdk_inventory: Exception has been thrown by the target of an invocation.
2017-06-03 18:22:07.7176|ERROR|CitizenMP.Server| at [U] System.Reflection.MonoMethod.Invoke(Object obj,BindingFlags invokeAttr,Binder binder,Object[] parameters,CultureInfo culture)
2017-06-03 18:22:07.7176|ERROR|CitizenMP.Server| at [U] System.Reflection.MethodBase.Invoke(Object obj,Object[] parameters)
2017-06-03 18:22:07.7176|ERROR|CitizenMP.Server| at [U] System.Delegate.DynamicInvokeImpl(Object[] args)
2017-06-03 18:22:07.7176|ERROR|CitizenMP.Server| at [U] System.MulticastDelegate.DynamicInvokeImpl(Object[] args)
2017-06-03 18:22:07.7176|ERROR|CitizenMP.Server| at [U] System.Delegate.DynamicInvoke(Object[] args)
2017-06-03 18:22:07.7184|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.TriggerEvent(String eventName,String argsSerialized,Int32 source)
2017-06-03 18:22:07.7184|ERROR|CitizenMP.Server|Inner exception: Unable to connect to any of the specified MySQL hosts.
2017-06-03 18:22:07.7184|ERROR|CitizenMP.Server| at [U] MySql.Data.MySqlClient.NativeDriver.Open()
2017-06-03 18:22:07.7184|ERROR|CitizenMP.Server| at [U] MySql.Data.MySqlClient.Driver.Open()
2017-06-03 18:22:07.7184|ERROR|CitizenMP.Server| at [U] MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
Take a screensot of your entire error
Hey since the new update i didn’t see where to link the ressource to my database so i guess my error is that but can you help me ?
Did you install MySQL Async ?
yes, i installed it and in the line of the error, I put before, i can see that it didn’t load MySqlConnector.dll that comes from mysql-async.
Here is the solution :