Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
3 changes: 0 additions & 3 deletions LICENSE

This file was deleted.

36 changes: 0 additions & 36 deletions README.md

This file was deleted.

2 changes: 1 addition & 1 deletion DiamondBlackjack/cl_blackjack.lua → cl_blackjack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ cfg.blackjackTables = {
}

--Use this command to get the coords you need for setting up new tables.
--Some maps use the prop vw_prop_casino_blckjack_01 some use vw_prop_casino_blckjack_01b, so change accordingly.
--Some maps use the prop vw_prop_casino_blckjack_01 some use vw_prop_casino blckjack_01b, so change accordingly.
RegisterCommand("getcasinotable",function()
local playerCoords = GetEntityCoords(PlayerPedId())
local blackjackTable = GetClosestObjectOfType(playerCoords.x,playerCoords.y,playerCoords.z,3.0,GetHashKey("vw_prop_casino_blckjack_01"),0,0,0)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 6 additions & 1 deletion DiamondBlackjack/sv_blackjack.lua → sv_blackjack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,12 @@ for i=0,31,1 do
--print("dealerHand: " .. tostring(dealerHand))
if currentHand ~= nil then
if currentHand <= 21 then
local potentialWinAmount = blackjackGameData[gameId][source][1] * 2
local potentialWinAmount
if currentHand == 21 and #blackjackGameData[gameId][source]["cardData"] == 2 then
potentialWinAmount = blackjackGameData[gameId][source][1] * 2.5
else
potentialWinAmount = blackjackGameData[gameId][source][1] * 2
end
local potentialPushAmount = blackjackGameData[gameId][source][1]
local playerPing = GetPlayerPing(source)
if dealerHand > 21 then
Expand Down