pocko
Members-
Posts
101 -
Joined
-
Last visited
Everything posted by pocko
-
Hallo i have this problem i v made a map but i cant include the car.Here what I made.Script for car addEventHandler('onClientResourceStart', resourceRoot, function() txd = engineLoadTXD ( "data/1.txd" ) engineImportTXD ( txd, 451 ) dff = engineLoadDFF ( "data/1.dff", 451 ) engineReplaceModel ( dff, 451 ) end ) Then i write in meta.xml this <?xml version="1.0" encoding="utf-16"?> <file src="data/1.txd" type="client"/> <file src="data/1.dff" type="client"/> <script src="cars.lua" type="client"/> <meta> <info type="map" gamemodes="race" name="[RC]2 yalleV gninthgiL" /> <map src="[RC]2 yalleV gninthgiL.map" /> <settings> <setting name="#time" value="19:30" /> <setting name="#weather" value="1" /> <setting name="#respawn" value="timelimit" /> <setting name="#duration" value="240" /> </settings> </meta> and anythink is ok but i can t start the map
-
so can you correct my trying to make this ?
-
Can you show me how to make it ?I re read it 3 times and not understand My new tryed again fail g_RaceStartCountdown = Countdown.create(6, launchRace) g_RaceStartCountdown:useImages('img/countdown_%d.png', 474, 204) g_RaceStartCountdown:enableFade(true) g_RaceStartCountdown:addClientHook(3, 'playSoundFrontEnd', 44) g_RaceStartCountdown:addClientHook(2, 'playSoundFrontEnd', 44) g_RaceStartCountdown:addClientHook(1, 'playSoundFrontEnd', 44) g_RaceStartCountdown:addClientHook(0, 'playSoundFrontEnd', 45)then playSound("file.wav")
-
i search in all lua files and found this in race_server.lua g_RaceStartCountdown = Countdown.create(6, launchRace) g_RaceStartCountdown:useImages('img/countdown_%d.png', 474, 204) g_RaceStartCountdown:enableFade(true) g_RaceStartCountdown:addClientHook(3, 'playSoundFrontEnd', 44) g_RaceStartCountdown:addClientHook(2, 'playSoundFrontEnd', 44) g_RaceStartCountdown:addClientHook(1, 'playSoundFrontEnd', 44) g_RaceStartCountdown:addClientHook(0, 'playSoundFrontEnd', 45) here how i made it but not work ;x g_RaceStartCountdown = Countdown.create(6, launchRace) g_RaceStartCountdown:useImages('img/countdown_%d.png', 474, 204) g_RaceStartCountdown:enableFade(true) g_RaceStartCountdown:addClientHook(3, 'playSoundFrontEnd', 44) g_RaceStartCountdown:addClientHook(2, 'playSoundFrontEnd', 44) g_RaceStartCountdown:addClientHook(1, 'playSoundFrontEnd', 44) playSound("sfx/321.mp3") g_RaceStartCountdown:addClientHook(0, 'playSoundFrontEnd', 45) playSound("sfx/go.mp3")
-
can someone tell me where is the count down sounds ?in race mod?
-
ok i found one file in the internet.Type:fxp"and i thinked can be posible with changing id s:) But ty for the information
-
Hey i found one file where make your nitro flame pink but i think make script.Im not sure i think maybe have id for this nitro flame or somethink?
-
ahm well i want to know the id s for sounds.I search https://wiki.multitheftauto.com/wiki/PlaySoundFrontEndBut i can t found the sounds well can you put diffrent sounds on repair and nitro ?
-
yes now i understand anythink only must know the id's 46 if for repair i saw in wiki but i want repair and nitros to be difrent sounds.maybe only id's must change ?but from where i search there not found it do you know the ids ?
-
function handleHitPickup(pickup) if pickup.type == 'vehiclechange' then playSoundFrontEnd(46) else playSound("sfx/repair.wav") if pickup.vehicle == getElementModel(g_Vehicle) then return end g_PrevVehicleHeight = getElementDistanceFromCentreOfMassToBaseOfModel(g_Vehicle) end triggerServerEvent('onPlayerPickUpRacePickupInternal', g_Me, pickup.id, pickup.respawn) end The sound work but the problem is all pickups is this sound
-
this PlaySoundFrontEnd (46) 46 is it a ID of this item ?
-
I want to change Nitro sound And Repair sound
-
and what i must change ex:playSoundFrontEnd with sound ex:sfx/vehicle.wav?
-
I m trying to make somethink maybe someone know how.The problem is when i get pickups "nitro,vehicle change,repair" I want to change the sounds.Here what i tryed but not work Look on line 5 what i tryed. if pickup.type == 'repair' then fixVehicle(vehicle) elseif pickup.type == 'nitro' then addVehicleUpgrade(vehicle, 1010) local sound = playSound("sfx/nitro.wav") elseif pickup.type == 'vehiclechange' then if getElementModel(vehicle) ~= tonumber(pickup.vehicle) then clientCall(source, 'alignVehicleWithUp') setVehicleID(vehicle, pickup.vehicle) setVehiclePaintjobAndUpgrades(vehicle, pickup.paintjob, pickup.upgrades) clientCall(source, 'vehicleChanging', g_MapOptions.classicchangez, tonumber(pickup.vehicle)) end end) and here the meta <file src="sfx/nitro.wav" />
-
I too can we see the system where you use ?
-
i used this from wiki g_MissionTimer = exports.missiontimer:createMissionTimer (g_TimeLimit,true,"%m:%s",0.5,20,true,"default-bold",1,255,255,255) addEventHandler ( "onMissionTimerElapsed", g_MissionTimer, onTimeElapsed ) createMissionTimer ( duration, countdown, format, x, y, bg, font, scale, r, g, b ) setMissionTimerTime ( missionTimer, time ) getMissionTimerTime ( missionTimer ) setMissionTimerFrozen ( missionTimer, frozen ) isMissionTimerFrozen ( missionTimer ) setMissionTimerHurryTime ( missionTimer, time ) setMissionTimerFormat ( missionTimer, format ) But nothink i not understand the script If someone can write this correctly maybe will work. I found and resource in comunity but not worked again https://community.multitheftauto.com/index.php?p=resources&s=details&id=1077
-
ou this timepassed is not like time left i mean when you join and before to start count down you can t see the Timeleft and the png file only in the right corner have time passed but this is difrent he showing before count down I want only to make it like a time left to show on png file after countdown.
-
ou not help me i tryed and not work
-
one of the part its ready.I mean timeleft is ready but where to get timepassed ?
