Search results
Jump to navigation
Jump to search
- addEventHandler("onClientResourceStart", resourceRoot, createAndFire) This example will create an M4, attach it to the local player and fire it every frame. Be aware that neither the weapon nor the shots are synced betw2 KB (220 words) - 17:35, 4 May 2024
- ...-side resource triggers the [[onClientResourceStart]] event when the files it requires are downloaded. addEventHandler("onClientResourceStart", resourceRoot, checkTransfer)1 KB (162 words) - 12:02, 4 October 2020
- This example creates a gui grid list, fills it with the names of the connected players and prints the number of rows (play <syntaxhighlight lang="lua">function onClientResourceStart ()2 KB (172 words) - 09:18, 12 July 2023
- Returns ''true'' if the event occurred, otherwise it throws an error message. addEventHandler("onClientResourceStart", resourceRoot,1 KB (140 words) - 00:37, 8 June 2024
- If the function succeeds it returns ''true'', if it fails it returns ''false''. ...button when the resource starts and defines a console command that toggles it between enabled (clickable) and disabled (not clickable).2 KB (224 words) - 23:13, 11 January 2023
- '''Example:''' Sets the rain (So it can detect it) before returning it. (In this case, when resource starts.) addEventHandler("onClientResourceStart", resourceRoot, function()2 KB (192 words) - 23:12, 11 January 2023
- Returns ''true'' if the event occurred, otherwise it throws an error message. addEventHandler("onClientResourceStart", resourceRoot,721 bytes (72 words) - 01:14, 8 June 2024
- * '''theElement''': The element you want to center it. addEventHandler( "onClientResourceStart", resourceRoot, function()2 KB (179 words) - 02:19, 5 May 2017
- *'''parent:''' the gui-element this scrollbar is attached to. By default, it is nil, meaning the widget is attached to the background. Returns a ''gui-scrollbar'' if it was created successfully, ''false'' otherwise.2 KB (255 words) - 08:05, 30 October 2023
- ...succeeds, it returns a string with the value of the property. If it fails, it returns ''false''. ...button when the resource starts and defines a console command that toggles it between enabled (clickable) and disabled (not clickable).1 KB (169 words) - 17:17, 21 November 2018
- ...no-3D sounds (those created by [[playSound]]), it only makes sense to use it with 3D sounds (created by [[playSound3D]]). Please refer to [[setSoundPann ...ns ''true'' if the sound is valid and it has panning enabled, ''false'' if it does not or is not valid.2 KB (247 words) - 14:29, 19 July 2018
- ...no-3D sounds (those created by [[playSound]]), it only makes sense to use it with 3D sounds (created by [[playSound3D]]). Please refer to [[setSoundPann ...ns ''true'' if the sound is valid and it has panning enabled, ''false'' if it does not or is not valid.2 KB (249 words) - 00:24, 18 August 2021
- ...hat this function does not affect collision - the building is still there, it's just invisible: addEventHandler ("onClientResourceStart", resourceRoot, init)1 KB (127 words) - 20:36, 23 September 2021
- This example creates a DGS window and sets it to be not movable -- set it to be not movable985 bytes (127 words) - 11:00, 20 January 2018
- ...es a little advert field on the bottom right corner of the screen and sets it to read only. if advert then -- if it was successfully created1 KB (163 words) - 10:57, 20 January 2018
- This example creates a gui window and sets it to be not sizable -- set it to be not sizable984 bytes (124 words) - 11:00, 20 January 2018
- ...es a little advert field on the bottom right corner of the screen and sets it to read only. if advert then -- if it was successfully created1 KB (164 words) - 14:56, 18 January 2018
- .... Remember to use [[setElementDimension]] after creating the sound to play it outside of dimension 0. ...only supported audio formats are MP3, WAV, OGG, FLAC, RIFF, MOD, WEBM, XM, IT and S3M.3 KB (433 words) - 12:44, 17 June 2024
- This example creates a gui window and sets it to be not movable -- set it to be not movable1 KB (133 words) - 11:31, 7 August 2019
- <syntaxhighlight lang="lua">addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource( ) ), -- only execute the code wh ...dOnly( memo, true ) -- make it read only, so players won't be able to edit it in-game1 KB (141 words) - 13:56, 10 August 2021