elseif action == GOSSIP_ACTION_INFO_DEF + 16 then if Player:GetMoney()== nil then LuaAI:DoSay("Cant get money from player", 0) else LuaAI:DoSay("Got money from player need to work out how to use vaule", 0) end -- if the tostring line crashes server comment it out and try other line --LuaAI:DoSay(tostring(Player:GetMoney()), 0) --LuaAI:DoSay(Player:GetMoney(), 0) if (Player:GetMoney() >= 1000000) then Player:SetMoney(Player:GetMoney() - 1000000) query = "SELECT `position_x` , `position_y` , `position_z` , `orientation` , `map` FROM `game_tele` WHERE `name`= `xxx`"; tele1 = sDatabase:Query(query) tele2 = tele1:Fecth(); player:TeleportTo(tele2[4], tele2[0], tele2[1] , tele2[2] , tele2[3], false, true ); end