• [DarkRP] Get Pocket contents details?
    5 replies, posted
Hey! How i can get in lua DarkRP pocket CONTENTS, not class with model. I used this (Gives Class and model of SHIPMENT) [CODE]PrintTable(LocalPlayer():getPocketItems())[/CODE] Returns: [QUOTE]1: class = spawned_shipment model = models/items/item_item_crate.mdl [/QUOTE] I need the Shipment, name and amount.
-BUMP-
I'm pretty sure you can look in the player table darkRPPocket. For example: [code] for _, v in pairs (player.GetAll()) do PrintTable(v.darkRPPocket) end [/code]
Only the model and class are networked clientside. You can use hooks serverside to network the entity yourself.
[QUOTE=Bo98;47353053]Only the model and class are networked clientside. You can use hooks serverside to network the entity yourself.[/QUOTE] So, if i do that serverside, i will get all the info that i need?
[QUOTE=SteppuFIN;47353113]So, if i do that serverside, i will get all the info that i need?[/QUOTE] After testing alot of my time, still cant get the info... Tried to 'hack' the source code for darkrp, but still dont know how to get info.
Sorry, you need to Log In to post a reply to this thread.