• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] :VendorRemoveAllItems() (Lua)[Question]

Status
Not open for further replies.

Pox

Enthusiast
Whats wrong with
i don't see why it wouldn't work :eek:
do i need specific id or can i just put like "all" in there?
http://pastebin.com/C1wqcjTZ

Code:
local MSG_REMOVE = ".VR"
 
function RemovesOnChat(event, player, message, type, language, pUnit)
        if(message == MSG_REMOVE) then
                        player:VendorRemoveAllItems()  
                        print(""..player:GetName().." used .VR command")
                end
        end
 
RegisterServerHook(16, RemovesOnChat)
 
Status
Not open for further replies.
Top