Jump to content

[lua][/lua] highlighting


Recommended Posts

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
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
  • 4 months later...
  • 2 months later...
  • 3 weeks later...
  • 2 weeks later...

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 by Guest
Link to comment

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

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
  • 6 months later...

\' 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...