-
Posts
405 -
Joined
-
Last visited
Everything posted by Vision
-
guiSetVisible( window1, true ) Should be guiSetVisible ( window1, not guiGetVisible ( window1 ) )
-
I think that this isn't possible.
-
Try this addEventHandler("onClientGUIClick", root, function() if ( source == GUIEditor.button[3] ) then guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end )
-
Stolen https://community.multitheftauto.com/index.php?p= ... ls&id=6634 DONE
-
addEventHandler( "onVehicleStartEnter", root, function ( enteringPlayer, seat ) local skin = getElementModel ( enteringPlayer ) if ( getElementModel ( source ) == 427 and seat == 0 ) and not ( skin == 285 or skin == 217 ) then outputChatBox ( "You Are Not Part Of The SWAT Team To Enter This Vehicle", enteringPlayer, 255, 0, 0, true ) cancelEvent( ) end end )
-
Like this? addEventHandler( "onVehicleStartEnter", root, function ( enteringPlayer ) local skin = getElementModel ( enteringPlayer ) if ( getElementModel ( source ) == 427 ) and not ( skin == 285 or skin == 217 ) then cancelEvent( ) end end )
-
Wow nice, good job Sora.
-
Para de fazer spam no forum todo.
-
Try to change this guiGridListSetSelectionMode(GUIEditor_Grid[1],2) to this guiGridListSetSelectionMode(GUIEditor_Grid[1],0)
-
Try this local weaponsTable = { {"Sniper",10,1200} } function setweps () for index, weapon in pairs(weaponsTable) do local row = guiGridListAddRow(GUIEditor_Grid[1]) guiGridListSetItemText (GUIEditor_Grid[1], row, 1, weapon[1], false, true) guiGridListSetItemText (GUIEditor_Grid[1], row, 2, weapon[2], false, true) guiGridListSetItemText (GUIEditor_Grid[1], row, 3, weapon[3], false, true) end end addEventHandler ( "onClientResourceStart", resourceRoot, setweps )
-
createObject getPlayerWantedLevel attachElements
-
outputChatBox(getPlayerName(thePlayer).." criou um veículo com sucesso",root) Assim?
-
Tenta esse aqui function createVehicleForPlayer(thePlayer, command, vehicleModel) local x,y,z = getElementPosition(thePlayer) x = x + 3 local createdVehicle = createVehicle(tonumber(vehicleModel),x,y,z) if (createdVehicle) then outputChatBox("Veiculo criado com sucesso",thePlayer) else outputChatBox("Falhou ao criar veiculo",thePlayer) end end addCommandHandler("criarveiculo", createVehicleForPlayer)
-
It should be on server side.
-
onClientGUIclick Should be onClientGUIClick
-
Try this function getPlayerFromNamePart(name) if name then for i, player in ipairs(getElementsByType("player")) do if string.find(getPlayerName(player):lower(), tostring(name):lower(), 1, true) then return player end end end return false end function givemoney(player, _, to, ...) local money = table.concat({...}," ") local personToReceive = getPlayerFromNamePart(to) if personToReceive then givePlayerMoney ( personToRecieve, tonumber(money) ) takePlayerMoney ( player, tonumber(money) ) exports ["guimessages"] : outputServer ( player, "You sent $ ".. money .." to "..getPlayerName(player).."!" , 255, 255, 0 ) exports ["guimessages"] : outputServer ( personToReceive, getPlayerName(player).." sent $"..money.." you!", 255, 255, 0 ) end end addCommandHandler ( "give", givemoney )
-
Try this function registerHandler(player, username, password) local account = getAccount(username, password) if account then triggerClientEvent(player, "registerTaken", getRootElement()) else account = addAccount (username, password) --replace the account var with this if ( logIn ( player, account, password ) == true ) then triggerClientEvent(player, "hideLoginWindow", getRootElement()) showChat( source, true) setTimer ( fadeCamera, 50, 1, source,false, 1 ) exports["Evo-notificaciones"]:showBox ( source, "warning", "Bienvenido Al Server Su No Apareses Reconnecta /reconnect Y Si Apareses En Un Edificio Tirate Y Lee F1 Esperamos Que Tengas Una Buena Convivencia Con El Server." ) setTimer ( fadeCamera, 1000, 1, source,true, 3 ) setTimer( spawnPlayer, 1600,1,source, 1682.6030273438, -2327.3889160156, 13.546875) setTimer(setCameraMatrix,1500,1,source, 808,-1351,-0.4,-1000,0,0,0,0) setTimer(setElementRotation,2251,1,source,0,0,220) end end end
-
I think that you are using this code in server-side.
-
setElementModel(source,math.random ( 211, 217 ))
-
setWorldSoundEnabled