Jump to content

MrGTAmodsgerman

Members
  • Posts

    40
  • Joined

  • Last visited

Everything posted by MrGTAmodsgerman

  1. OMG IT WORKS but work it for other players? OMG GREAT SCRIPT BIG THANKS BIG THANKS
  2. ok no i set now the sript type to client and i got no errors but i dont hear the sound Meta
  3. ok I may have misunderstood tell me,how to set the script as client sorry but the script really dont work
  4. i got new errors when i try to remove your lince number..... 2013-06-16 19:56:33] WARNING: [gamemodes]\zughupe\zughupe.lua:20: Bad argument @ 'bindKey' [2013-06-16 19:56:33] WARNING: [gamemodes]\zughupe\zughupe.lua:21: Bad argument @ 'bindKey' binkey is to connect a key on the keyboard?
  5. the script makes no sense if no other player hears the horn and it showes a error with you lua script 06-16 19:37:57] SCRIPT ERROR: [gamemodes]\zughupe\zughupe.lua:1: '=' expected near 'number' [2013-06-16 19:37:57] WARNING: Loading script failed: [gamemodes]\zughupe\zughupe.lua:1: '=' expected near 'number' [2013-06-16 19:37:57] start: Resource 'zughupe' started how to fix? like this? Line number On/Off | Expand near/Contract | Select all function bindHoron ( key, keyState ) local theVehicle = getPedOccupiedVehicle ( localPlayer ) if ( not theVehicle ) then return end if ( getElementModel ( theVehicle ) == 537 ) then if ( keyState == 'down' ) then sound = playSound3D ( 'hupe/ZUGHUPE.mp3', getElementPosition ( localPlayer ) ) setSoundVolume ( desusound, 5.0 ) setSoundMaxDistance ( desusound, 190 ) attachElements ( sound, theVehicle ) elseif ( keyState == 'up' ) then if isElement ( sound ) then stopSound ( sound ) end end end end bindKey ( 'h', 'down', bindHoron ) bindKey ( 'h', 'up', bindHoron ) how to get it hear for everbody on the radius of the train? how to get fix it?
  6. Hello guys i want to make a train horn for the freight on my upcoming server but iam a noob in Lua but i have a script and the script dont work function bindHoron( key, keyState ) if getElementModel ( theVehicle ) == 537 then if ( keyState == 'down' ) then sound = playSound3D( 'hupe/ZUGHUPE.mp3', getElementPosition( localPlayer ) ) setSoundVolume(desusound,5.0) setSoundMaxDistance(desusound, 190) attachElements( sound, getPedOccupiedVehicle( localPlayer ) ) elseif ( keyState == 'up' ) then if isElement( sound ) then stopSound( sound ) end end end end bindKey( 'h', 'down', bindHoron ) bindKey( 'h', 'up', bindHoron ) how to get it work? i wanna have a custom train horn like the cleo mod "trainhorn" i hope you can help me I am grateful for any answer
  7. OMG THANKS ALOT But tell me your idea of a custom gta car and it is still possible the marker utilizable only for trains to pacemakers?i mean the freight
  8. thanks but it play my sound when i start the script not if the freight hit the marker it comes only my outputchatbox -- Client Side ! local marker = createMarker ( -1873.587890625, -1262.5078125, 15.474542617798, "cylinder", 1.5, 255, 255, 0, 170 ) function MarkerHit( hitElement, matchingDimension ) if ( hitElement == getLocalPlayer() ) then outputChatBox( "Zugstation wurde gewarnt!" ) end end addEventHandler( "onClientMarkerHit",marker,MarkerHit,false ) function playHBFMusic() local uSound = playSound3D( 'ansage/ansage.mp3',-1937.876953125, 128.0166015625, 26.273441314697 ) setSoundMaxDistance( uSound, 10000 ) setSoundMinDistance( uSound, 5000 ) end addEventHandler( "onClientResourceStart",resourceRoot, playHBFMusic ) how i can make to play the sound when the freight hit the marker? thanks for your code but not fix
  9. how to get it work? function MarkerHit( hitElement, matchingDimension ) if hitElement== getLocalPlayer() then outputChatBox( "warned train station" ) end addEventHandler("onClientMarkerHit", getLocalPlayer(), MarkerHit) function playHBFMusic() local uSound = playSound3D( 'sound/sirene.mp3', -1901.9541015625, 341.8291015625, 43.750392913818 ) setSoundMaxDistance( uSound, 3000 ) setSoundMinDistance( uSound, 1000 ) end addEventHandler("onClientResourceStart", getRootElement(), playHBFMusic)
  10. what do you mean with trains aren't synced?
  11. is my script idea even possible?
  12. i mean mean,i have to lean it but i dont know how?Lua is like VBS and i can speak VBS please im ready to learn if i must to do it
  13. Hello guys Im new in this forum and i really need your help I don't know how to script in Lua and i don't even want to learn it, because i'm skilled enough in VBS,GTA modding and HTML... the thing is: i'd like to have a script for my upcoming server: when you're driving as a player with the freight train thorugh markers which are located on the tracks there should be caused a mp3 sound which will be played at the exact same time at the next train station but the marker would be a client and the soundplayer would be a script please, i really need your help i'd really appreciate it, as a countermove i would give you a customized modded original car from the original car list for example that theres written on a car something like "Big City reallife" or a "flash" stretch limousine please answer, i'd appreciate any answer
×
×
  • Create New...