vSync (v1.4.0) | Simple weather and time sync

i am getting an error of failed to load the resource vsync … how do i fix that?

You didn’t follow the installation instructions correctly, your folder setup is probably the cause

How can I change the dynamic time change from 10 minutes to 30 for example?

if I want the admin list to be IPs instead of Steam Hex is it as simple at ‘steam:#############’ into ‘ip:##.###.##.##’???

1 Like

Yes, any of these can work:

identifier.steam:110000105959047 # steam 64 hex id
identifier.license:4510587c13e0b645eb8d24bc104601792277ab98 # license
identifier.xbl:2535449515926077 # xbl
identifier.live:844427594787542 # live
identifier.ip:127.0.0.1 # ip

is there a way to use the ace admin thing so we can do

admins = {
group.owner,
–‘license:1234975143578921327’,
}
instead maybe?

OR EVEN
add_ace group.owner vsync.weather allow
add_ace group.owner vsync.time allow

1 Like

Currently: no.

but it would be easy to add it in this function:

function isAllowedToChange(player)
    -- check aces first
    if IsPlayerAceAllowed(player, "vsync") then return true end

    -- if aces are not allowed, check the admins list
    local allowed = false
    for i,id in ipairs(admins) do
        for x,pid in ipairs(GetPlayerIdentifiers(player)) do
            if debugprint then print('admin id: ' .. id .. '\nplayer id:' .. pid) end
            if string.lower(pid) == string.lower(id) then
                allowed = true
            end
        end
    end
    return allowed
end
1 Like

awesome thanks for the help!

@Vespura When i put the file in the server and i start playing my game the world is flickering

Either a graphics mod or you’re using multiple resources that modify/sync weather and/or time

Is there a possibility to make this use ACE perms instead of the text file?

vsync

Why this message in console??

You probably changed something in vSync and now it’s broken.

Look 4 comments up. :wink:

I put version 1.4.0 and I not changed anything of the script :\

How the fuck I missed that I don’t know. Cheers.

1 Like

I replied this before but since then my attempts to do it made me no longer able to change weather, I want to be able to make admins able to change weather/time yet after attempting to do this it would seem I have effectively done so yet my FX server doesn’t seem to think I am the admin/owner. I would like to have it work via either Steam Hex and/or IP. please help