Jump to content

-.Paradox.-

Members
  • Posts

    1,239
  • Joined

  • Last visited

Everything posted by -.Paradox.-

  1. But I want to put 10 other radio channels working good but when I click on play all the radio channels play in the same time and I want only to play selected item
  2. Try Server side addEventHandler('onPlayerLogin', getRootElement(), function() triggerClientEvent('startSound', getRootElement(), 'login') end ) Client side local sounds = { ['login'] = 'winsound.mp3' } function startSound(sound) playSound(sounds[sound], false) end addEvent('startSound', true) addEventHandler('startSound', getRootElement(), startSound)
  3. I have weapon gui so if player has lvl 3 and buy a lvl 5 weapon it output in chatbox that he cant
  4. Hello I made a weapon shop it contain all the weapons and I want if player level 0 he can only buy the weapons that are for his level and same thing for other weapons my level system based on Element data (Level)
  5. Open ports write you're local ip adress in you're navigator and write username and pass etc....
  6. Big image near his left hand
  7. Help please the last code is working all what I want do is to draw the image in player head
  8. Thanks man working Thank you Castillo and xXMadeXx One little problem i want when player click on pause it stop the sound
  9. Still nothing, the radio URL is good and i didn't find the problem
  10. He want on Marker Hit ...
  11. It's client side here is the server side addEvent ( "StartTheSound", true ) addEventHandler ( "StartTheSound", root, function ( ) triggerClientEvent ( root, "StartTheSound_C", root ) end )
  12. It show nothing in debug it dont want to play sound neither
  13. I want to keep it secret, can i send it to you in pm?
  14. When i press the play sound i dont hear the radio, nothing in debug this time.
  15. Attempt to call guiGirdListGetSelectedItem (a nil value)
  16. Can't understand? You mean like that? Here is my server side script addEvent("firstSound", true) addEventHandler("firstSound", root, function( ) for i,v in ipairs( getElementsByType( "player" ) ) do local x, y, z = getElementPosition( v ); local playButton = playSound( 'http://www.181.fm/playing.php?station=181-party&embed=1') setSoundMaxDistance( playButton, 100 ) end end) addEvent("firstSoundStop", true) addEventHandler("firstSoundStop", root, function ( ) if(isSoundPaused(playButton)) then --sound is paused, un-pause it setSoundPaused(playButton, false) else --sound is not paused, pause it setSoundPaused(playButton, true) end end)
  17. Hello i need some help here when i click the play bouton it dont play the radio addEventHandler("onClientGUIClick", guiRoot, function() if source == GUIEditor.button[1] then local row = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) if row == 0 then function radio( ) for i,v in ipairs( getElementsByType( "player" ) ) do local x, y, z = getElementPosition( v ); local playButton = playSound3D( 'http://www.181.fm/playing.php?station=181-party&embed=1') setSoundMaxDistance( playButton, 100 ) end end end end end)
  18. try EDIT: mojmarker = createMarker (-1984.6114501953, 248.5777130127, 34.171875, 'cylinder', 5, 0, 0, 190) function spanie(player) if source == mojmarker then if isPedInVehicle (player) then setPedFrozen ( player, true ) setTimer( setPedFrozen, 1000,1, player, false ) end end end addEventHandler ("onClientMarkerhit", mojmarker, spanie)
  19. -.Paradox.-

    help

    Nothing in debug i just tried to do that for all weapon and every weapon by it stat like example Weapon id is 22 id of pistol skill is 69 etc...
×
×
  • Create New...