-
Posts
15 -
Joined
-
Last visited
Details
-
Gang
Los Santos PoliceDep
-
Location
Miami, Florida
-
Occupation
Police Officer
-
Interests
Scripting, Editing
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Eddy32HD's Achievements
Square (6/54)
2
Reputation
-
Is it only me that can not reach the website or theirs some form of update or server malfunction? Image
-
This works 100% Great job!!! Thank you everyone for helping out @LoPollo @Walid @Dimos7
-
I made a quick video explaining the situation. (BY THE WAY) SOUND012 IS NOW SOUND011, I changed the file to a different siren effect. sorry if I'm confusing some.
-
I just want the sound to be turn on and off. Yes
-
Ok Sound003 is a Police car Air horn which i had to set a loop to the sound. Looped Air horn, Works great I can toggle it on and off. sounds["003"] = playSound("Sirens/Sound_003.wav",true) But Sound012 is a regular wailing siren that can only be toggled on and not off, even though I looped the sound.
-
This works perfectly, but sound012 is not acting like sound003, I tried changing the bindKey for sound012 and didn't work.
-
That's seems better but it wont activate again.
-
This works, but it only plays one time.
-
Not working, Must be on the volume error, server log hasn't detect an error
-
I cant seem to find a solution to have a toggle system for a sound to play. For Example: If i press "b" The sirens should go off, if i press "b" again it should stop. This is what I want to happen. when i press "b" the siren should sound, and when i press "b" again the siren should stop. CODE (Client-Side) --Sirens Section function sound003 (player) local sound = playSound("Sirens/Sound_003.wav") setSoundVolume(sound, 0.3) end addCommandHandler("sound003", sound003) bindKey("num_1", "down", "sound003") function sound012 (player) local sound = playSound("Sirens/Sound_012.wav") setSoundVolume(sound, 0.3) end addCommandHandler("sound012", sound012) bindKey("n", "down", "sound012") every time I press the bindKey it keeps spamming the sound.
-
I resolved This part [23:05:10] WARNING: movinggate\server.lua:6: Bad argument @ 'addEventHandler' [Expected element at argument 2, got function] [23:05:10] WARNING: movinggate\server.lua:11: Bad argument @ 'addEventHandler' [Expected element at argument 2, got function] By adding "root" to "addEventHandler("onMarkerHit", root, gateo)" Both Object = createObject(968, 1546.1999511719, -1631, 13.39999961853, 0, 90, 90) Marker = createMarker(1551.0999755859, -1627.3000488281, 12.5, "cylinder", 2, 100, 0, 12.5, 100) function gateo(player) moveObject(object, 1546.1999511719, -1631, 13.39999961853, 0, 0, 90) end addEventHandler("onMarkerHit", root, gateo) function gateoback(player) moveObject(object, 1546.1999511719, -1631, 13.39999961853, 0, 90, 90) end addEventHandler("onMarkerLeave",root, gateoback) But now, I have a new Error Warning by the server Log. Error ~ [23:40:27] WARNING: movinggate\server.lua:9: Bad argument @ 'moveObject' [Expected element at argument 1, got nil] [23:41:18] WARNING: movinggate\server.lua:4: Bad argument @ 'moveObject' [Expected element at argument 1, got nil]
-
Didn't work. Still same error code Server Log ~ [23:05:10] WARNING: movinggate\server.lua:6: Bad argument @ 'addEventHandler' [Expected element at argument 2, got function] [23:05:10] WARNING: movinggate\server.lua:11: Bad argument @ 'addEventHandler' [Expected element at argument 2, got function]
-
Eddy32HD changed their profile photo
-
Server Log ~ [22:38:39] Starting movinggate [22:38:39] WARNING: movinggate\server.lua:6: Bad argument @ 'addEventHandler' [Expected element at argument 2, got function] [22:38:39] movinggate restarted successfully [22:38:45] WARNING: movinggate\server.lua:11: Bad argument @ 'addEventHandler' [Expected element at argument 2, got function] Script Code ~ Object = createObject(968, 1546.1999511719, -1631, 13.39999961853, 0, 90, 90) Marker = createMarker(1551.0999755859, -1627.3000488281, 12.5, "cylinder", 2, 100, 0, 12.5, 100) function gateo(player) moveObject(object, 500, 1546.1999511719, -1631, 13.39999961853, 0, 0, 90) end addEventHandler("onMarkerHit",gateo) function gateo(player) moveObject(object, 500, 1546.1999511719, -1631, 13.39999961853, 0, 90, 90) end addEventHandler("onMarkerLeave",gateo) Please help me solve this "addEventHandler" Problem. I'm new to the scripting,, Ive tried my research but i dont get it.