Is this code correct

Citizen.CreateThread(function()

while true do

Citizen.Wait(0)

local ped = GetPlayerPed(-1)

local car = GetVehiclePedIsIn(ped)



if car ~= 0 and (wasInCar or IsCar(car)) then

  wasInCar = true

end

TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'Inform  ', text = '<span>تم البيع</span>', style = { ['background-color'] = '', ['color'] = '' } })

end

end)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.