It doesnt work .-. I am a new scripter and I want to learn please Help me this is the code: 
 
Server:  
function tped () 
        local ped = createPed ( 133, 165.5587, -27.8196, 1.5781 ) 
        local attached = createBlipAttachedTo ( ped, 60 ) 
        setElementFrozen ( ped, true ) 
        setBlipVisibleDistance ( attached, 800 )        
end 
addEventHandler ("onResourceStart", getResourceRootElement ( getThisResource () ), tped) 
  
function Confirm ( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement ) 
        local tt = createTeam ( "Trucker", 255, 255, 0 ) 
        setElementModel ( thePlayer, 133 ) 
        setPlayerTeam ( thePlayer, "Trucker" ) 
end 
  
Client: 
function CreateGui ( theElement, matchingDimension ) 
        local x = 0.375 
        local y = 0.375 
        local width = 0.25 
        local height = 0.25 
        local twindow = guiCreateWindow ( x, y, width, height, "Trucker Job", true ) 
  
        x = 0.400 
        y = 0.400 
        width = 0.05 
        height = 0.05 
        guiCreateLabel ( x, y, width, height, "In trucker job you need to deliver some stuff to the gas stations.", true, twindow ) 
  
        x = 0.100 
        y = 0.150 
        width = 0.02 
        height = 0.02 
        local conb = guiCreateButton ( x, y, width, height, "Confirm", true, twindow ) 
        x = 0.400 
        local canb = guiCreateButton ( x, y, width, height, "Cancel", true, twindow ) 
  
        guiSetVisible( twindow, false ) 
end 
addEventHandler ("onClientResourceStart", getResourceRootElement ( getThisResource () ), CreateGui) 
  
addEventHandler ( "onClientClick", conb, Confirm ) 
addEventHandler ( "onClientClick", canb, Cancel ) 
  
function Cancel ( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement ) 
         guiSetVisible( twindow, false ) 
         showCursor ( false ) 
end 
   
function nigga () 
local tc = createColTube ( 165.5587, -27.8196, 1.5781, 10, 5) 
end 
addEventHandler ("onClientResourceStart", getResourceRootElement ( getThisResource () ), nigga) 
  
function check (hitElement) 
if getElementType(hitElement) == "player" and (hitElement == localPlayer) then 
if not guiGetVisible(twindow) then 
guiSetVisible( twindow, true ) 
showCursor ( true ) 
end 
end 
end 
addEventHandler( "onClientColShapeHit", tc, check )