How to use the AsyncUseItemFor function from bindings

Find comprehensive JavaScript bindings.AsyncUseItemFor code examples handpicked from public code repositorys.

97
98
99
100
101
102
103
104
105
106
}

cga.useItemForMyPet = function(itempos){
        var player = cga.GetPlayerInfo();
        var pet = cga.GetPetInfo(player.petid);
        cga.AsyncUseItemFor(itempos, function(players){
                if(players == false){
                        console.log('AsyncUseItemFor failed');
                        return;
                }
fork icon35
star icon0
watch icon1

+ 3 other calls in file

Other functions in bindings

Sorted by popularity

function icon

bindings.createKey is the most popular function in bindings (8616 examples)