Loadtube
Server & Client
เรียกใช้ผ่าน exports ทุกฟังชั่น
วิธีเรียกใช้งาน
เรียกใช้ crateLoadTube ( ) และ setTubeEnabled ( )
ตัวอย่าง Server:
local loadtube = exports.loadtube:createLoadTube( player, "loading", 1, 1, 350, 30, 0.5, 1, "default-bold", false )
loadtube = exports.loadtube:setTimerTube ( loadtube, 15 ) -- ตั้งเวลา
exports.loadtube:setTubeEnabled( player, loadtube ) -- สั่งเปิดใช้งาน
-- export.loadtube:setTubeEnabled( player, false ) -- สำรหับ สั่งปิดใช้งาน
ตัวอย่าง Client:
local loadtube = exports.loadtube:createLoadTube( "loading", 1, 1, 350, 30, 0.5, 1, "default-bold", false )
exports.loadtube:setTimerTube ( 15 ) -- ตั้งเวลา
exports.loadtube:setTubeEnabled( true ) -- สั่งเปิดใช้งาน
-- export.loadtube:setTubeEnabled( false ) -- สำรหับ สั่งปิดใช้งาน
Server:
createLoadTube( element player, string = "TEXT" , float posX = 0 - 2, float posY = 0 - 2, float posW = 0, float = posH , int radius = 0.5, float scale = 1, mixed font = "default-bold", postGUI = false )
setTubeEnabled ( element player, table customize By createLoadTube, ... )
setTimerTube ( table customize By createLoadTube, int timer = 5 )
setSizeShadowTube ( table customize By createLoadTube, int size = 4 )
setPositionShadowTube ( table customize By createLoadTube, float posX = 0, float posY = 0 )
setColorTube ( table customize By createLoadTube, int r = 86, int g = 86, int b = 86, int a = 255 )
setColorLoadingTube ( table customize By createLoadTube, int r = 0, int g = 114, int b = 255, int a = 255 )
setColorShadowTube ( table customize By createLoadTube, int r = 20, int g = 20, int b = 20, int a = 255 )
setTextLoadingTube ( table customize By createLoadTube, string text = "วินาที" )
addEventHandler( "onLoadTubeFinish", getRootElement( ),
function ( )
end
)
addEventHandler( "onLoadTubeStart", getRootElement( ),
function ( )
end
)
addEventHandler( "onLoadTubeCancel", getRootElement( ),
function ( )
end
)
Client:
createLoadTube( string = "TEXT", float posX = 0 - 2, float posY = 0 - 2, float posW = 0, float = posH , int radius = 0.5, float scale = 1, mixed font = "default-bold", postGUI = false )
setTubeEnabled ( boolean true or false, parameter ... )
setTimerTube ( int timer = 5 )
setSizeShadowTube ( int size = 4 )
setPositionShadowTube ( float posX = 0, float posY = 0 )
setColorTube ( int r = 86, int g = 86, int b = 86, int a = 255 )
setColorLoadingTube ( int r = 0, int g = 114, int b = 255, int a = 255 )
setColorShadowTube ( int r = 20, int g = 20, int b = 20, int a = 255 )
setTextLoadingTube ( string text = "วินาที" )
addEventHandler( "onLoadTubeFinishClient", getRootElement( ),
function ( )
end
)
addEventHandler( "onLoadTubeStartClient", getRootElement( ),
function ( )
end
)
addEventHandler( "onLoadTubeCancelClient", getRootElement( ),
function ( )
end
)
Download Now v1.2
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)
ไม่มีความคิดเห็น:
แสดงความคิดเห็น