Jump to content

Vinctus

Members
  • Posts

    43
  • Joined

  • Last visited

Posts posted by Vinctus

  1. make the type as "server" on first one, try after that

    <meta> 
        <script src="countdownC.lua" type="client" /> 
        <script src="countdownS.lua" type="server" /> 
        <file src="images/1.png" /> 
        <file src="images/2.png" /> 
        <file src="images/3.png" /> 
        <file src="images/go.png" /> 
        <file src="go.mp3" /> 
        <file src="tick.mp3" /> 
        
        <export function="startCountDown" type="server" /> 
        <export function="startCountDown" type="client" /> 
    </meta> 
    

    what is the clientside for anyway?

  2. attach element data on the player once he done X thing then check if he has elem data when he opens the gui, if he has, disable the button or if you want to use accountData, make the check via server side event

  3. local myMods = { 
         -- file name, replaces 
         {"filename",411}, 
    } 
      
    addEventHandler("onClientResourceStart", resourceRoot, function() 
         for _,theMod in ipairs(myMods) do 
              local file = theMod[1] 
              local id = theMod[2]      
      
              local txd = engineLoadTXD (file .. ".txd" ) 
              engineImportTXD ( txd, id ) 
              local dff = engineLoadDFF (file .. ".dff", id ) 
              engineReplaceModel ( dff, id ) 
         end 
    end) 
    

    if you are going to have multiple mods, use this.. easier than the engineLoad stuff 500 times.

  4. make sure to check it's not empty vehicle (that there is someone driving) or players can abuse it by shooting at their vehicle and then repairing it :P

  5. "ERROR: Couldn't find file skins/13.txd"

    you are missing a .txd file or you don't have it on the correct folder -- it must be in zombies/skins folder.

  6. here's an example:

    addEventHandler("onVehicleStartEnter", root, function(enteringPlayer, seat) 
        if enteringPlayer and seat == 0 then -- if he tries to enter driver seat 
            if not getElementData(enteringPlayer, "police") then 
                cancelEvent() 
            end 
        end 
    end) 
    

    or whatever you use to check if he is police

×
×
  • Create New...