-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
I don't know where you got that from xUltimate, because it has many mistakes on it. addCommandHandler( "setskin", function( player, cmd, skin ) skin = tonumber( skin ) local oldSkin = getElementModel( player ) if oldSkin == skin then outputChatBox( "You already using that skin.", player, 255, 255, 0 ) elseif setElementModel( player, skin ) then outputChatBox( "Skin changed to " .. skin, player, 0, 255, 153 ) else outputChatBox( "Skin " .. skin .. " is invalid.", player, 255, 0, 0 ) end end ) this one works fine. Edit: Oh, i see where you got that code from, mta paradise.
-
You can register with the "logingui" when you join o_o, but make sure you got the registration enabled! there is a settings.xml and <setting name="@players.allow_registration" value="1"/> check if value is "1"
-
tell me, how are you using the function "robb"?
-
Jumper, i would recommend you to start searching before ask something.
-
what do you mean?
-
if you want only to load the map then why you put changeGamemode? i think you should use changeGamemodeMap
-
[url=https://wiki.multitheftauto.com/wiki/Main_Page]https://wiki.multitheftauto.com/wiki/Main_Page[/url] https://wiki.multitheftauto.com/wiki/Introduction_to_Scripting_the_GUI
-
if you aren't going to make it public shouldn't be in another section? (maybe i'm wrong)
-
This will be a public game mode or?
-
in mtaserver.conf you can set resources to auto start with server.
-
type in game /login (it will say syntax error if you don't put it correctly)
-
Is this even your script? because i seen this on a very old topic o_O
-
You can change your name in "User control panel"
-
I don't understand.. the script we fixed was to check when you enter that "policeVehicle".
-
if it needs admin rights then add it to acl.
-
Try something by yourself next time
-
policeVehicle = createVehicle ( 426, 2418.4436035156, 85.328956604004, 26.292650222778, 0, 0, 90 ) policeSkins = { [286]=true,[288]=true } function enterVehicle ( player, seat, jacked ) if (getElementModel( source ) == getElementModel(policeVehicle) ) and ( not policeSkins[getElementModel( player )] ) then outputChatBox ( "You're not a cop!", player ) cancelEvent() end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle )
-
Just try something
-
MTA has a built-in /login command, i don't see much point creating a new one
-
Then use this guide: https://wiki.multitheftauto.com/wiki/Resources
-
local myWindow = guiCreateWindow ( 0, 0, 0.5, 0.4, "Information", true )--create a window which has "Information" in the title bar. guiSetVisible(myWindow,false) local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) --create a tab panel which fills the whole window local tabMap = guiCreateTab( "Map Information", tabPanel ) -- create a tab named "Map Information" on 'tabPanel' local tabHelp = guiCreateTab( "Help", tabPanel ) -- create another tab named "Help" on 'tabPanel' -- adds a label (text) to each tab guiCreateLabel(0.02,0.04,0.94,0.2,"This is information about the current map",true,tabMap) guiCreateLabel(0.02,0.04,0.94,0.92,"This is help text.",true,tabHelp) outputChatBox("TEST:",thePlayer) function open_close() if guiGetVisible(myWindow) == false then guiSetVisible(myWindow,true) showCursor(true) else guiSetVisible(myWindow,false) showCursor(false) end end addCommandHandler("cmds",open_close)
-
try this, function onPlayerCommand(thePlayer,command) if isElement(myWindow) then destroyElement(myWindow) end local myWindow = guiCreateWindow ( 0, 0, 0.5, 0.4, "Information", true )--create a window which has "Information" in the title bar. local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) --create a tab panel which fills the whole window local tabMap = guiCreateTab( "Map Information", tabPanel ) -- create a tab named "Map Information" on 'tabPanel' local tabHelp = guiCreateTab( "Help", tabPanel ) -- create another tab named "Help" on 'tabPanel' -- adds a label (text) to each tab guiCreateLabel(0.02,0.04,0.94,0.2,"This is information about the current map",true,tabMap) guiCreateLabel(0.02,0.04,0.94,0.92,"This is help text.",true,tabHelp) outputChatBox("TEST:",thePlayer) end addCommandHandler("cmds",onPlayerCommand)
-
I'm guessing you are using the Default game mode named "play" and "freeroam" include, then you must make "play" a folder and open broph.lua and paste the code Scooby made on it.
-
post your meta.xml here.
