Montis.
-
Posts
17 -
Joined
-
Last visited
Posts posted by Montis.
-
-
Hi. I have this script how can I add more songs?
function startMusic() setRadioChannel(0) song = playSound("music2.mp3",true) outputChatBox("#ffffff* #C0FF3ETurn on/off Music Using #FFFFFF\"M\"",255,255,255,true) end function makeRadioStayOff() setRadioChannel(0) cancelEvent() end function toggleSong() if not songOff then setSoundVolume(song,0) songOff = true removeEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) else setSoundVolume(song,1) songOff = false setRadioChannel(0) addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) end end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),startMusic) addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) addEventHandler("onClientPlayerVehicleEnter",getRootElement(),makeRadioStayOff) addCommandHandler("musicmusic",toggleSong) bindKey("m","down","musicmusic") addEventHandler("onClientResourceStop",getResourceRootElement(getThisResource()),startMusic)
-
Hi I have questions how to create nos pickup, car pickup, car reapair pickup?
What a function to use create this?
-
they are in internal.db
What a program to use to open this file?
-
Just add "
Thanks it's working but I dont know where I can find players accounts?
-
You need to add the resource to an ACL group which has the right to use addAccount. https://wiki.multitheftauto.com/wiki/ACL
I insert this in acl xml file but nothing changes.
login is folder name.
I don't understand someone tell me what i need to do?
-
Hello I download resource reg log system and when I insert something in gui table and press button nothing happens this with all systems reg log.
And I get error:
[2012-02-06 17:16:08] WARNING: login\script.lua:42: Access denied @ 'addAccount'[2012-02-06 17:16:08] WARNING: login\script.lua:43: Bad argument @ 'logIn' [Expected account at argument 2, got nil]
Sorry for my bad english.
-
And what the problem?
Nothinng thanks for help ;D
-
I try this script:
function skinas(thePlayer,command) local skin = getPedSkin( thePlayer ) outputChatBox ( "Tavo skin id: " ..tostring(skin).."!" ) end addCommandHandler ( "skinas",skinas)
And result: Tavo skin id: 126!
-
I create command but when I use command nothing happen.
Script:
function Skinas(commandName) outputChatBox ( "Tavo skin id: " .. getPedSkin ( getLocalPlayer() ) ) end addCommandHandler ( "skin",Skinas)
-
Hi i just created simple command and i need put player in car how can i do it?
My command:
function SukuriameMasina(thePlayer, command) local x, y, z = getElementPosition(thePlayer) local Masina = createVehicle ( 411, 0, 0, 0 ) spawnVehicle ( Masina, x+3, y+3, z ) outputChatBox("Masina sukurta", thePlayer) end addCommandHandler("masina",SukuriameMasina)
-
Really really nice well done.
-
To be able to compile a script it must have no errors, debug your script before try to compile it.
How can i debug srcipt? I know i can compile with f5 but how debug script?
Sorry for my bad english ;D
-
You can't compile a script that is enconded with UTF-8, you must change the encoding to UTF-8 without BOM.
Ok I changed UTF-8 in UTF-8 without BOM with notepad++ program and i compile the script with lua program and i get error:
Runtime Error at line -1:...amemodes]/[tdm]/scoreboard/tdma_scoreboard_stats.lua:37:
attempt to call global 'getThisSource'(a nil value)
-
Any script to compile I get an error.
Syntax Error at line -1:...hmatch/resource-cache/unzipped/tdma/scoreboard/tdma_scoreboar
d_stats.lua1:unexpected symbol near '?'
What i need to do?
-
Yra tų Lietuvių.
-
Need help.
in Scripting
Posted
First thing i'm not very good in lua scripting(newbie). You have to add the mp3 file in the meta.xml I know it. But I just don't know how to create it in script.