eAi Posted July 7, 2011 Share Posted July 7, 2011 Can you also add a [lua] / BB codes buttons to post form near [ Code ] button? It's very actual feature.If someone tells me how - I tried to do it before but couldn't work out how in the short amount of time I had... Link to comment
MX_Master Posted July 7, 2011 Share Posted July 7, 2011 Can you also add a [lua] / BB codes buttons to post form near [ Code ] button? It's very actual feature.If someone tells me how - I tried to do it before but couldn't work out how in the short amount of time I had...I can't remember exactly path of this feature, but it's not hard to find it. I think it in the "Messages" tab of admin panel.And what about geshi highlight file generator? ^ Link to comment
MX_Master Posted July 11, 2011 Share Posted July 11, 2011 Is there any news about `LUA bbcode button in post form` ? Link to comment
SDK Posted July 14, 2011 Share Posted July 14, 2011 Also: [ code=text]: local smiley = " " [ code=lua]: local smiley = " " [ lua]: local smiley = " \"{SMILIES_PATH}/icon_cool.gif\" alt=\"\" title=\"Cool\" /> " Link to comment
Aibo Posted July 14, 2011 Share Posted July 14, 2011 Is there any news about `LUA bbcode button in post form` ? added (thanks to lil_Toady). also BBCode button added, so people could quickly link wiki pages, like: [ wiki]shader = shader Link to comment
MX_Master Posted November 30, 2011 Share Posted November 30, 2011 Please, update functions list for [ lua ] bbcode Link to comment
Kenix Posted February 5, 2012 Share Posted February 5, 2012 [ code=lua ] g = [[ text ]] [ lua ] g = [[ text ]] [ code ] g = [[ text ]] text in [[ ]] should be color coded. Link to comment
Aibo Posted February 21, 2012 Share Posted February 21, 2012 getCursorPosition() highlight is still broken: getCursorPosition" class="kw4">getCursorPosition() Link to comment
Kenix Posted February 24, 2012 Share Posted February 24, 2012 [ lua ] getVehicleType" class="kw2">getVehicleType [ code=lua ] getVehicleType" class="kw2">getVehicleType [ code ] getVehicleType Link to comment
MX_Master Posted February 26, 2012 Share Posted February 26, 2012 there is HL generator for the forum's lua HL addon - http://multi-theft-auto.ru/geshiLuaHLGenerator.zip (viewtopic.php?f=13&t=30112&start=15#p356063) , but there are no people, who can update current lua HL file Link to comment
Kenix Posted February 26, 2012 Share Posted February 26, 2012 http://pastebin.com/8M7h8HNs Fresh Link to comment
MX_Master Posted February 27, 2012 Share Posted February 27, 2012 I mean "who can update forum's HL file" ^^ Link to comment
MTA Team Blokker_1999 Posted March 10, 2012 MTA Team Share Posted March 10, 2012 getCursorPosition" class="kw4">getCursorPosition() Link to comment
Kenix Posted March 10, 2012 Share Posted March 10, 2012 [ code ] ipairs [ lua ] ipairs">ipairs [ code=lua ] ipairs">ipairs Link to comment
MX_Master Posted March 10, 2012 Share Posted March 10, 2012 call to lil_Toady by mobile (: may be he just busy Link to comment
Kenix Posted March 10, 2012 Share Posted March 10, 2012 tonumber">tonumber pairs">pairs tostring">tostring Link to comment
MX_Master Posted March 10, 2012 Share Posted March 10, 2012 (edited) CHECK: Server version: 1.3.0-9.03898.0 Client version: 1.3.0-9.03898.0 Server only functions (243): ------------------------------------------------------------------------------------- aclCreate aclCreateGroup aclDestroy aclDestroyGroup aclGet aclGetGroup aclGetName aclGetRight aclGroupAddACL aclGroupAddObject aclGroupGetName aclGroupList aclGroupListACL aclGroupListObjects aclGroupRemoveACL aclGroupRemoveObject aclList aclListRights aclReload aclRemoveRight aclSave aclSetRight addAccount addBan addPlayerClothes addResourceConfig addResourceMap banPlayer callRemote clearElementVisibleTo cloneElement copyAccountData copyResource createResource createTeam dbConnect dbExec dbFree dbPoll dbQuery deleteResource executeSQLCreateTable executeSQLDelete executeSQLDropTable executeSQLInsert executeSQLQuery executeSQLSelect executeSQLUpdate fetchRemote forcePlayerMap get getAccount getAccountAllData getAccountData getAccountName getAccountPlayer getAccounts getAlivePlayers getAllElementData getBanAdmin getBanIP getBanNick getBanReason getBanSerial getBanTime getBanUsername getBans getCancelReason getClientAccount getClientIP getClientName getDeadPlayers getElementSyncer getElementZoneName getFPSLimit getGameType getLoadedModules getMapName getMaxPlayers getModelHandling getModuleInfo getObjectModel getPedFightingStyle getPedGravity getPedOccupiedVehicleSeat getPickupRespawnInterval getPlayerAccount getPlayerAnnounceValue getPlayerBlurLevel getPlayerClothes getPlayerCommunityID getPlayerCount getPlayerFightingStyle getPlayerGravity getPlayerIP getPlayerIdleTime getPlayerOccupiedVehicleSeat getPlayerVersion getRandomPlayer getResourceACLRequests getResourceInfo getResourceLastStartTime getResourceLoadFailureReason getResourceLoadTime getResourceMapRootElement getResourceState getResources getRuleValue getServerConfigSetting getServerHttpPort getServerName getServerPassword getServerPort getUnbanTime getVehiclesOfType givePedJetPack givePlayerJetPack giveWeapon giveWeaponAmmo hasObjectPermissionTo isElementVisibleTo isGlitchEnabled isGuestAccount isKeyBound isObjectInACLGroup isPedDead isPickupSpawned isPlayerMuted isPlayerScoreboardForced isVoiceEnabled kickPlayer killPed killPlayer loadMapData logIn logOut outputServerLog redirectPlayer refreshResources reloadPedWeapon removeAccount removeBan removeElementData removePedFromVehicle removePedJetPack removePlayerClothes removePlayerFromVehicle removePlayerJetPack removeResourceDefaultSetting removeResourceFile removeRuleValue renameResource resendPlayerModInfo resetMapInfo resetVehicleExplosionTime resetVehicleIdleTime respawnVehicle restartResource saveMapData set setAccountData setAccountPassword setClientName setElementSyncer setElementVisibleTo setFPSLimit setGameType setGlitchEnabled setMapName setMaxPlayers setModelHandling setObjectModel setPedArmor setPedChoking setPedFightingStyle setPedGravity setPedStat setPickupRespawnInterval setPlayerAmmo setPlayerAnnounceValue setPlayerArmor setPlayerBlurLevel setPlayerChoking setPlayerFightingStyle setPlayerGravity setPlayerMuted setPlayerName setPlayerStat setPlayerTeam setPlayerVoiceBroadcastTo setPlayerVoiceIgnoreFrom setPlayerWantedLevel setResourceDefaultSetting setResourceInfo setRuleValue setServerConfigSetting setServerPassword setTeamColor setTeamFriendlyFire setTeamName setVehicleHandling setVehicleIdleRespawnDelay setVehicleRespawnDelay setVehicleRespawnPosition setVehicleVariant setWeaponAmmo setWeaponProperty shutdown spawnPlayer spawnVehicle startResource stopResource takeAllWeapons takePlayerScreenShot takeWeapon takeWeaponAmmo textCreateDisplay textCreateTextItem textDestroyDisplay textDestroyTextItem textDisplayAddObserver textDisplayAddText textDisplayGetObservers textDisplayIsObserver textDisplayRemoveObserver textDisplayRemoveText textItemGetColor textItemGetPosition textItemGetPriority textItemGetScale textItemGetText textItemSetColor textItemSetPosition textItemSetPriority textItemSetScale textItemSetText toggleVehicleRespawn triggerClientEvent triggerLatentClientEvent updateResourceACLRequest usePickup warpPedIntoVehicle warpPlayerIntoVehicle Client only functions (297): ------------------------------------------------------------------------------------- canPedBeKnockedOffBike canPlayerBeKnockedOffBike createFire createProjectile createSWATRope dxConvertPixels dxCreateFont dxCreateRenderTarget dxCreateScreenSource dxCreateShader dxCreateTexture dxDrawImage dxDrawImageSection dxDrawLine dxDrawLine3D dxDrawRectangle dxDrawText dxGetBlendMode dxGetFontHeight dxGetMaterialSize dxGetPixelColor dxGetPixelsFormat dxGetPixelsSize dxGetStatus dxGetTextWidth dxGetTexturePixels dxSetBlendMode dxSetPixelColor dxSetRenderTarget dxSetShaderTessellation dxSetShaderTransform dxSetShaderValue dxSetTestMode dxSetTexturePixels dxUpdateScreenSource engineApplyShaderToWorldTexture engineGetModelIDFromName engineGetModelNameFromID engineGetModelTextureNames engineGetVisibleTextureNames engineImportTXD engineLoadCOL engineLoadDFF engineLoadTXD engineRemoveShaderFromWorldTexture engineReplaceCOL engineReplaceModel engineRestoreCOL engineRestoreModel engineSetAsynchronousLoading engineSetModelLODDistance fxAddBlood fxAddBulletImpact fxAddBulletSplash fxAddDebris fxAddFootSplash fxAddGlass fxAddGunshot fxAddPunchImpact fxAddSparks fxAddTankFire fxAddTyreBurst fxAddWaterHydrant fxAddWaterSplash fxAddWood getAnalogControlState getBirdsEnabled getBlurLevel getBoundKeys getCameraGoggleEffect getCameraViewMode getChatboxLayout getCommandsBoundToKey getCursorPosition getDevelopmentMode getElementBoundingBox getElementDistanceFromCentreOfMassToBaseOfModel getElementMatrix getElementRadius getGarageBoundingBox getGaragePosition getGarageSize getGroundPosition getHelicopterRotorSpeed getKeyBoundToCommand getKeyState getLocalPlayer getModel getPedAnimation getPedBonePosition getPedCameraRotation getPedControlState getPedMoveState getPedSimplestTask getPedTargetCollision getPedTargetEnd getPedTargetRange getPedTargetStart getPedTask getPedVoice getPedWeaponMuzzlePosition getPlayerMapBoundingBox getPlayerSimplestTask getPlayerTargetCollision getPlayerTargetEnd getPlayerTargetRange getPlayerTargetStart getPlayerTask getProjectileCreator getProjectileForce getProjectileTarget getProjectileType getRadioChannel getRadioChannelName getResourceGUIElement getScreenFromWorldPosition getSoundEffects getSoundLength getSoundMaxDistance getSoundMetaTags getSoundMinDistance getSoundPosition getSoundSpeed getSoundVolume getVehicleAdjustableProperty getVehicleCurrentGear getVehicleGravity getWaterLevel getWorldFromScreenPosition guiBringToFront guiCheckBoxGetSelected guiCheckBoxSetSelected guiComboBoxAddItem guiComboBoxClear guiComboBoxGetItemText guiComboBoxGetSelected guiComboBoxRemoveItem guiComboBoxSetItemText guiComboBoxSetSelected guiCreateButton guiCreateCheckBox guiCreateComboBox guiCreateEdit guiCreateFont guiCreateGridList guiCreateLabel guiCreateMemo guiCreateProgressBar guiCreateRadioButton guiCreateScrollBar guiCreateScrollPane guiCreateStaticImage guiCreateTab guiCreateTabPanel guiCreateWindow guiDeleteTab guiEditSetCaratIndex guiEditSetCaretIndex guiEditSetMasked guiEditSetMaxLength guiEditSetReadOnly guiGetAlpha guiGetEnabled guiGetFont guiGetInputEnabled guiGetInputMode guiGetPosition guiGetProperties guiGetProperty guiGetScreenSize guiGetSelectedTab guiGetSize guiGetText guiGetVisible guiGridListAddColumn guiGridListAddRow guiGridListAutoSizeColumn guiGridListClear guiGridListGetColumnCount guiGridListGetItemColor guiGridListGetItemData guiGridListGetItemText guiGridListGetRowCount guiGridListGetSelectedCount guiGridListGetSelectedItem guiGridListGetSelectedItems guiGridListInsertRowAfter guiGridListRemoveColumn guiGridListRemoveRow guiGridListSetColumnWidth guiGridListSetItemColor guiGridListSetItemData guiGridListSetItemText guiGridListSetScrollBars guiGridListSetSelectedItem guiGridListSetSelectionMode guiGridListSetSortingEnabled guiLabelGetFontHeight guiLabelGetTextExtent guiLabelSetColor guiLabelSetHorizontalAlign guiLabelSetVerticalAlign guiMemoSetCaratIndex guiMemoSetCaretIndex guiMemoSetReadOnly guiMoveToBack guiProgressBarGetProgress guiProgressBarSetProgress guiRadioButtonGetSelected guiRadioButtonSetSelected guiScrollBarGetScrollPosition guiScrollBarSetScrollPosition guiScrollPaneGetHorizontalScrollPosition guiScrollPaneGetVerticalScrollPosition guiScrollPaneSetHorizontalScrollPosition guiScrollPaneSetScrollBars guiScrollPaneSetVerticalScrollPosition guiSetAlpha guiSetEnabled guiSetFont guiSetInputEnabled guiSetInputMode guiSetPosition guiSetProperty guiSetSelectedTab guiSetSize guiSetText guiSetVisible guiStaticImageLoadImage guiWindowSetMovable guiWindowSetSizable isAmbientSoundEnabled isChatBoxInputActive isConsoleActive isDebugViewActive isElementCollidableWith isElementLocal isElementOnScreen isElementStreamable isElementStreamedIn isElementSyncer isLineOfSightClear isMTAWindowActive isMainMenuActive isObjectBreakable isObjectStatic isPedDoingTask isPedFootBloodEnabled isPlayerDoingTask isPlayerMapVisible Edited March 20, 2012 by Guest Link to comment
Aibo Posted March 18, 2012 Share Posted March 18, 2012 http://pastebin.com/8M7h8HNsFresh you should've checked that file before posting. because it has duplicate functions in "Lua" AND "Client and Server". so first a function like ipairs gets parsed as a Lua function: <a href="http://www.lua.org/manual/5.1/manual.html#pdf-ipairs">... and then parsed again as a MTA Client and Server function: <a href="http://www.lua.org/manual/5.1/manual.html#pdf-<a href="https://wiki.multitheftauto.com/wiki/ipairs">">... and here it breaks down. i guess that file was used in here, and now we got ipairs, tostring and other basic Lua stuff broken. could someone please remove these functions from "MTA Client and Server" array (5) in lua.php: assert dofile error getfenv getmetatable ipairs load loadfile loadstring next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall PS: if that file was generated by a resource, that resource should be fixed to exclude native Lua functions from "Client and Server". Link to comment
MX_Master Posted March 18, 2012 Share Posted March 18, 2012 File was added without any warranties and all contents must be tested and so edited by the web-master. And resource is too old. No one use it for long time. I can fix that resource but somebody must use it to generate new lua.php versions.. Link to comment
MX_Master Posted March 18, 2012 Share Posted March 18, 2012 Here is fixed resource. Latest lua.php see inside. http://multi-theft-auto.ru/mtasaresourc ... erator.zip Link to comment
Aibo Posted March 18, 2012 Share Posted March 18, 2012 testing: assert dofile error getfenv getmetatable ipairs load loadfile loadstring next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall thanks, Blokker Link to comment
Kenix Posted September 25, 2012 Share Posted September 25, 2012 \' and doesn't colored in lua tag and in code tag too. print( ' \'Something\' ' ) print( ' \'Something\' ' ) Should be print( ' \'Something\' ' ) [ code=lua ] g = [[ text ]] [ lua ] g = [[ text ]] [ code ] g = [[ text ]] text in [[ ]] should be color coded. Don't forget about this too. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now