Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onesync: add CClearPedTasksEvent server event #491

Merged
merged 2 commits into from Jul 14, 2020
Merged

onesync: add CClearPedTasksEvent server event #491

merged 2 commits into from Jul 14, 2020

Conversation

SloPro
Copy link
Contributor

@SloPro SloPro commented Jul 14, 2020

Seems to work fine when tested with 2 players.
Example usage:

AddEventHandler("clearPedTasksEvent", function(sender, data)
    print(sender, GetPlayerName(sender), json.encode(data))
    -- 128, SloPro, { "pedId": 1, "unk1": true }
end)

Can be cancelled to prevent syncing.

Seems to work fine when tested with 2 players.
Example usage:
```lua
AddEventHandler("clearPedTasksEvent", function(sender, data)
    print(sender, GetPlayerName(sender), json.encode(data))
    -- 128, SloPro, { "pedId": 1, "unk1": true }
end)
```
Can be cancelled to prevent syncing.
}

int pedId;
bool unk1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should double check this in your testing, but I believe unk1 corresponds to: Clear Tasks Immediately

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does appear so, I'll change the name of it then.

@blattersturm blattersturm merged commit 48e2b7c into citizenfx:master Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants