-
Posts
309 -
Joined
-
Last visited
Everything posted by Tokio
-
yeah, but where? which file?
-
Here is my code: local times = 0 function ada(chosenOption) if chosenOption == 9 then setElementData(root, "played", times+1) end end addEventHandler("onPollEnd", root,ada) I want add +1 times if everyone votes Play again. But does not working.. How to fix?
-
Somehow i can make this possible? When a player connect, then he have to wait the end of download, then he can use the fr gui. I want make fr gui usable when player download the mods. Sorry for my bad english..
-
I attached a song to my car, but when i'll go far away from car, the music starts from the beginning... s: how to fix this?
-
this can work? function trig() for _, player in pairs( getElementsByType 'player' ) do triggerClientEvent(player,"asd123asd456",player) end end addEvent( "asjdlaj", true ) addEventHandler( "asjdlaj", root, trig )
-
i changed the asd.mp3 to converterlink/ytlink, but i get ytlink with guiGetText. how to add this to server side?
-
client: function rtwjhrt() if isElement(ss) then stopSound(ss) return end local car = getPedOccupiedVehicle ( localPlayer ) local gettext = guiGetText ( GUIEditor.edit[1] ) local x, y, z = getElementPosition( car ) local ss = playSound3D( 'asd.mp3', x, y, z ) setSoundMaxDistance( ss, 85 ) attachElements(ss,car) end addEvent("asd123asd456",true) addEventHandler("asd123asd456",root,rtwjhrt) server: function trig() triggerClientEvent(root,"asd123asd456",root) end addEvent( "asjdlaj", true ) addEventHandler( "asjdlaj", root, trig ) Why not hear the sound another players?
-
vas1 = createObject ( 3529, -2112.55103, -249.87376, 35.32031, 0, 0, 0 ) function repairClickedVehicle( button, state, player ) if button == "left" and state == "down" then if getElementType( source ) == "object" then destroyElement(vas1) end end end addEventHandler( "onElementClicked", getRootElement( ), repairClickedVehicle ) This working fine... but when i reconnect, the object appear again.. how to fix this?
-
But this ( https://wiki.multitheftauto.com/wiki/DxDrawRectangle3D ) does not working.. why?
-
I want create a dxdraw rectangle and text on the map. But how to make this possible?
-
function onSwitchToMinigun (previous, current) if ( current == 38 ) then local accName = getAccountName ( getPlayerAccount ( source ) ) if ( hasObjectPermissionTo(source, "function.kickPlayer") then else killPed(source) takeWeapon( source, 38) end end end addEventHandler("onPlayerWeaponSwitch", getRootElement(), onSwitchToMinigun )
-
this is my code: function onQuit(thePlayer) for i,v in pairs(getElementsByType("vehicle",resourceRoot)) do if getElementData(v,"oveie") == getPlayerName(thePlayer) then destroyElement(v) end end end addEventHandler ( "onPlayerQuit", root, onQuit ) but this does not working.. why? how to fix it?