gpt-4o-2024-08-06· OpenAI
WildChat-4.8M (AI2)
function main() if not isSampLoaded() or not isSampfuncsLoaded() then return end while…
- Assistant
Hello! How can I assist you today?
- User
function main() if not isSampLoaded() or not isSampfuncsLoaded() then return end while not isSampAvailable() do wait(0) end
codewhile true do local car = storeCarCharIsInNoSave(playerPed) local qx, qy, qz, qw = getVehicleQuaternion(car) local ex, ey, ez = QuatToEuler(qx, qy, qz, qw) local positionX, positionY, positionZ = getCarCoordinates(car) positionX, positionY, positionZ = ( vec3(positionX, positionY, positionZ) + ( quat(qx, qy, qz, qw) * vec3(0, -10, 1) ) ):unpack() camX, camY, camZ = ( vec3(positionX, positionY, positionZ) + ( quat(qx, qy, qz, qw) * vec3(0, 100, 0) ) ):unpack() local angle = math.deg( getRollFromQuat( quat( qx, qy, qz, qw ) ) ) attachCameraToVehicle(car, 0, -10, 1, 0, 0, 0, ey, 2) wait(0) endend
почисть и отрефактори
- Assistant