#Paper
Members-
Posts
568 -
Joined
-
Last visited
Everything posted by #Paper
-
Is there a function that check if already exists a Data in a account?
-
OMFG! i think that this function is bugged: another time player is a bad argument
-
T_T !another time bad argument! T_T
-
https://wiki.multitheftauto.com/wiki/Interior_IDs But here there aren't the ID of all interiors...
-
Sorry all, but i'm trying to make a RPG Mode: How i can teleport in an interior? I must use onMarkerHit event, but in the function?
-
function onLogin ( player, user, pass ) local account = getAccount ( user, pass ) if ( account ~= false ) then if (logIn ( player, account, pass ) == true) then triggerClientEvent ( player,"hideLoginWindow", getRootElement() ) spawna() ----HERE THE TRIGGER else outputChatBox ( "Login error!", player, 255, 255, 0 ) -- Output they got the details wrong. end else outputChatBox ( "Wrong username or password!", player, 255, 255, 0 ) -- Output they got the details wrong. end end
-
addEvent("makePlayerSpawn", true) function spawna () spawnPlayer ( source, -2650.2561035156, 22.383113861084, 27.414619445801, 90, 26 ) fadeCamera(source, true) setCameraTarget(source, player) end addEventHandler( "makePlayerSpawn", getRootElement(), spawna )
-
Is there anyway to use that markers code (from map editor) in LUA script? <marker id="marker:piazzastack" type="cylinder" color="#23FF0099" size="1.5" interior="0" dimension="0" posX="2332.3916015625" posY="75.06201171875" posZ="25.470973968506" rotX="0" rotY="0" rotZ="0" /> <marker id="marker:ammunation" type="cylinder" color="#FF000099" size="1.5" interior="0" dimension="0" posX="2333.556640625" posY="61.4833984375" posZ="25.455801010132" rotX="0" rotY="0" rotZ="0" /> <marker id="marker:24/7(2)" type="cylinder" color="#F600FF99" size="1.5" interior="0" dimension="0" posX="2333.1396484375" posY="30.9326171875" posZ="25.575233459473" rotX="0" rotY="0" rotZ="0" /> <marker id="marker:barbeer" type="cylinder" color="#00FF0099" size="1.5" interior="0" dimension="0" posX="2333.46875" posY="-17.8515625" posZ="25.359373092651" rotX="0" rotY="0" rotZ="0" /> <marker id="marker:pharmacy" type="cylinder" color="#00FFF599" size="1.5" interior="0" dimension="0" posX="2318.7131347656" posY="-88.312194824219" posZ="25.409379959106" rotX="0" rotY="0" rotZ="0" /> <marker id="marker:taxiDriversBase" type="cylinder" color="#C5AF3999" size="1.5" interior="0" dimension="0" posX="2269.6682128906" posY="-74.854507446289" posZ="25.722370147705" rotX="0" rotY="0" rotZ="0" /> <marker id="marker:burgershop" type="cylinder" color="#FF000099" size="1.5" interior="0" dimension="0" posX="2251.8854980469" posY="81.462425231934" posZ="25.484375" rotX="0" rotY="0" rotZ="0" /> <marker id="marker:bar1" type="cylinder" color="#FF000099" size="1.5" interior="0" dimension="0" posX="2305.65625" posY="83.760070800781" posZ="25.478796005249" rotX="0" rotY="0" rotZ="0" /> <marker id="marker:Bub" type="cylinder" color="#00FF0099" size="1.5" interior="0" dimension="0" posX="2335.3388671875" posY="-67.21639251709" posZ="25.334381103516" rotX="0" rotY="0" rotZ="0" /> <marker id="marker:office" type="cylinder" color="#F600FF99" size="1.5" interior="0" dimension="0" posX="2335.1804199219" posY="-48.62247467041" posZ="25.409372329712" rotX="0" rotY="0" rotZ="0" /> <marker id="marker:24/7" type="cylinder" color="#FF000099" size="1.5" interior="0" dimension="0" posX="2246.5261230469" posY="51.580299377441" posZ="25.484378814697" rotX="0" rotY="0" rotZ="0" /> <marker id="marker:policebase" type="cylinder" color="#47FF0099" size="2" interior="0" dimension="0" posX="2213.0629882813" posY="-119.96622467041" posZ="25.361618041992" rotX="0" rotY="0" rotZ="0" /> <marker id="marker:baseCriminale" type="cylinder" color="#01FDFA99" size="1.5" interior="0" dimension="0" posX="2157.8623046875" posY="-82.886756896973" posZ="2.508617401123" rotX="0" rotY="0" rotZ="0" /> <marker id="marker:cityall" type="cylinder" color="#00FF7799" size="1.5" interior="0" dimension="0" posX="2463.9887695313" posY="-51.33910369873" posZ="25.384376525879" rotX="0" rotY="0" rotZ="0" /> <marker id="marker:banca" type="cylinder" color="#2872D699" size="1.5" interior="0" dimension="0" posX="2316.7546386719" posY="-15.340330123901" posZ="25.692184448242" rotX="0" rotY="0" rotZ="0" /> <marker id="marker:concessionario" type="cylinder" color="#7C44BA99" size="1.5" interior="0" dimension="0" posX="2276.5708007813" posY="29.60631942749" posZ="26.675441741943" rotX="0" rotY="0" rotZ="0" />
-
the server says that's a bad argument... spawnPlayer ( source, -2650.2561035156, 22.383113861084, 27.414619445801, 90, 26 )
-
This event don't be triggered! --SERVER function onLogin ( player, user, pass ) local account = getAccount ( user, pass ) if ( account ~= false ) then if (logIn ( player, account, pass ) == true) then triggerClientEvent ( "hideLoginWindow", getRootElement() ) triggerClientEvent ( "showSkinSelector", getRootElement() ) else outputChatBox ( "Login error!", player, 255, 255, 0 ) -- Output they got the details wrong. end else outputChatBox ( "Wrong username or password!", player, 255, 255, 0 ) -- Output they got the details wrong. end end --CLIENT addEvent("showSkinSelector", true) function selectorenable () CreateSelectorWindow() addEventHandler("onClientGUIClick", btnLeft, clientSkinLeft, false) addEventHandler("onClientGUIClick", btnSelect, clientSkinSelect, false) addEventHandler("onClientGUIClick", btnRight, clientSkinRight, false) if (wdwselector ~= nil) then guiSetVisible(wdwselector, true) triggerServerEvent("FrontCamera", getRootElement()) end showCursor(true) end addEventHandler("showSkinSelector", selectorenable, getRootElement())
-
The GUI don't show: function showSkinSelect() local skins = { 7,8...} SelectSkinBtn = guiCreateButton(45,517,368,124,"Select skin!",false) guiSetFont(SelectSkinBtn,"default-bold-small") SkinGridList = guiCreateGridList(46,176,367,321,false) Skinidcolumn = guiGridListAddColumn(SkinGridList,"Skin ID",0.2) for k, v in ipairs(skins) do SkinIdRow = guiGridListAddRow ( SkinGridList ) guiGridListSetItemText ( SkinGridList, SkinIdRow, Skinidcolumn, v, false, false ) end dxDrawText("Select your skin!",314.0,6.0,812.0,142.0,tocolor(255,0,0,255),2.0,"bankgothic","center","center",false,false,false) end addEventHandler("onClientPlayerJoin", getRootElement(), showSkinSelect)
-
why don't give it to my server? -M$P-Racing
-
How i can randomize the spawnpoint's vehicle in a map? Race or Freeroam? or what mode... race
-
How i can randomize the spawnpoint's vehicle in a map?
-
How i can randomize the spawnpoints vehicle?
-
It don't works: WorksToCensor = { hacker, hack, cheater, cheat, Hacker, Hack, Cheater, Cheat } function checkorcensure (message,messageType) if string.find(message, #WorksToCensor, 1, true) then cancelEvent() outputChatBox("Use the /report!", source) end end addEventHandler("onPlayerChat", getRootElement(), checkorcensure)
-
lol non me ne ero accorto che eri tu... cmq io l'ho disattivato direttamente
-
racevoting.lua there is the command, disable it...
-
it return the count or only the players name? it returns a table of all the alive player elements to get the count: alivePlayersCount = #getAlivePlayers() to get names in a table: function getAlivePlayerNames() local alivePlayers = getAlivePlayers() local playerNames = {} for i, v in ipairs (alivePlayers) do table.insert (playerNames, getPlayerName(v)) end return playerNames end thanks
