- 220
- 30
addcar:
if uv2.Combo(u8("##CarVisual"), carvisual, {
"Infernus",
"Bullet",
"Maverick",
"NRG-500"
}, 4) then
if carvisual.v == 0 and isModelAvailable(411) then
slot7, slot8, slot9 = getOffsetFromCharInWorldCoords(PLAYER_PED, 0, 0, -1)
infernus = createCar(411, slot2, slot3, slot4)
warpCharIntoCar(PLAYER_PED, infernus)
markModelAsNoLongerNeeded(411)
restoreCameraJumpcut()
end
if carvisual.v == 1 and isModelAvailable(541) then
slot7, slot8, slot9 = getOffsetFromCharInWorldCoords(PLAYER_PED, 0, 0, -1)
bmx = createCar(541, slot2, slot3, slot4)
warpCharIntoCar(PLAYER_PED, bmx)
markModelAsNoLongerNeeded(541)
restoreCameraJumpcut()
end
if carvisual.v == 2 and isModelAvailable(487) then
slot7, slot8, slot9 = getOffsetFromCharInWorldCoords(PLAYER_PED, 0, 0, -1)
maverick = createCar(487, slot2, slot3, slot4)
warpCharIntoCar(PLAYER_PED, maverick)
markModelAsNoLongerNeeded(487)
restoreCameraJumpcut()
end
if carvisual.v == 3 and isModelAvailable(522) then
slot7, slot8, slot9 = getOffsetFromCharInWorldCoords(PLAYER_PED, 0, 0, -1)
nrg = createCar(522, slot2, slot3, slot4)
warpCharIntoCar(PLAYER_PED, nrg)
markModelAsNoLongerNeeded(522)
restoreCameraJumpcut()
end
end
хочу зарегестрировать команду на этот код, знатоки, помогите пожалуйстаaddcar:if uv2.Combo(u8("##CarVisual"), carvisual, { "Infernus", "Bullet", "Maverick", "NRG-500" }, 4) then if carvisual.v == 0 and isModelAvailable(411) then slot7, slot8, slot9 = getOffsetFromCharInWorldCoords(PLAYER_PED, 0, 0, -1) infernus = createCar(411, slot2, slot3, slot4) warpCharIntoCar(PLAYER_PED, infernus) markModelAsNoLongerNeeded(411) restoreCameraJumpcut() end if carvisual.v == 1 and isModelAvailable(541) then slot7, slot8, slot9 = getOffsetFromCharInWorldCoords(PLAYER_PED, 0, 0, -1) bmx = createCar(541, slot2, slot3, slot4) warpCharIntoCar(PLAYER_PED, bmx) markModelAsNoLongerNeeded(541) restoreCameraJumpcut() end if carvisual.v == 2 and isModelAvailable(487) then slot7, slot8, slot9 = getOffsetFromCharInWorldCoords(PLAYER_PED, 0, 0, -1) maverick = createCar(487, slot2, slot3, slot4) warpCharIntoCar(PLAYER_PED, maverick) markModelAsNoLongerNeeded(487) restoreCameraJumpcut() end if carvisual.v == 3 and isModelAvailable(522) then slot7, slot8, slot9 = getOffsetFromCharInWorldCoords(PLAYER_PED, 0, 0, -1) nrg = createCar(522, slot2, slot3, slot4) warpCharIntoCar(PLAYER_PED, nrg) markModelAsNoLongerNeeded(522) restoreCameraJumpcut() end end