Skip to content

Instantly share code, notes, and snippets.

View TroublesNCuddles's full-sized avatar
🏠
Chilling it with a Red Bull, A Burger and my Keyboard

Liara Gonzalez TroublesNCuddles

🏠
Chilling it with a Red Bull, A Burger and my Keyboard
View GitHub Profile
local Areas = {
BoxZone:Create(vector3(-321.31, -125.83, 39.01), 19.4, 7.2, {name="ghost",heading=340,minZ=37.26,maxZ=41.26}),
BoxZone:Create(vector3(-326.94, -144.67, 39.01), 5.4, 7.4, {name="ghostpaint",heading=340,minZ=38.01,maxZ=40.61})
}
local area = GetPedBoneCoords(PlayerPedId(), 0x796e)
function IsInWhitelistedArea()
local PlayerBoneCoords = GetPedBoneCoords(PlayerPedId(), 0x796e)
function LoadModel (model)
if not IsModelInCdimage(model) then return end
RequestModel(model)
while not HasModelLoaded(model) do Citizen.Wait(0) end
return model
end

Scaleform: mp_car_stats_01

Scale

Citizen.CreateThread(function()
    function Initialize(scaleform)
        scaleform = RequestScaleformMovie(scaleform)
        while not HasScaleformMovieLoaded(scaleform) do
            Citizen.Wait(0)
        end
        PushScaleformMovieFunction(scaleform, "SET_VEHICLE_INFOR_AND_STATS")