daffabahy 0 Posted April 2, 2017 Help me pls, i need your help. i dont know where's the problem. pls man function playerDropAItem(itemName) local x,y,z = getElementPosition(source) local item,itemString = getItemTablePosition(itemName) local itemPickup = createItemPickup(item,x+math.random(-1.25,1.25),y+math.random(-1.25,1.25),z,itemString) end addEvent( "playerDropAItem", true ) <export function="playerDropAItem" type="server" /> Share this post Link to post
Ayush Rathore 48 Posted April 2, 2017 3 hours ago, daffabahy said: Help me pls, i need your help. i dont know where's the problem. pls man function playerDropAItem(itemName) local x,y,z = getElementPosition(source) local item,itemString = getItemTablePosition(itemName) local itemPickup = createItemPickup(item,x+math.random(-1.25,1.25),y+math.random(-1.25,1.25),z,itemString) end addEvent( "playerDropAItem", true ) <export function="playerDropAItem" type="server" /> function playerDropAItem(itemName) local player = client if client then local x,y,z = getElementPosition(player) local item,itemString = getItemTablePosition(itemName) local itemPickup = createItemPickup(item,x+math.random(-1.25,1.25),y+math.random(-1.25,1.25),z,itemString) end end addEvent( "playerDropAItem", true ) addEventHandler( "playerDropAItem", getRootElement(),playerDropAItem) This might help you 1 Share this post Link to post
NeXuS™ 391 Posted April 2, 2017 @Ayush Rathore, won't help him. His server sided script is not getting loaded, that's why there is an error. Share this post Link to post
Ayush Rathore 48 Posted April 3, 2017 21 hours ago, NeXuS™ said: @Ayush Rathore, won't help him. His server sided script is not getting loaded, that's why there is an error. ok 1 Share this post Link to post